2022-01-04 15:27:34,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:34,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:34,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-04 15:27:34,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:34,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:34,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-04 15:27:34,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:34,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:34,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-04 15:27:34,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:34,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:34,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-04 15:27:34,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:27:34,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:34,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:34,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-04 15:27:34,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:34,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:34,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-04 15:27:34,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:34,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:34,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:27:35,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-04 15:27:35,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:32:01,177  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:32:01,189 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:32:01,189  INFO ilens-edge_engine Count: 1, Print Found: True
2022-01-04 15:32:19,174  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:32:19,188 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:32:19,188  INFO ilens-edge_engine Count: 2, Print Found: True
2022-01-04 15:32:20,896  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:32:20,901 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:32:20,901  INFO ilens-edge_engine Count: 3, Print Found: True
2022-01-04 15:32:22,594  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:32:22,603 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:32:22,604  INFO ilens-edge_engine Count: 4, Print Found: True
2022-01-04 15:32:30,218  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:32:30,231 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:32:30,232  INFO ilens-edge_engine Count: 5, Print Found: True
2022-01-04 15:32:31,621  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:32:31,633 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:32:31,634  INFO ilens-edge_engine Count: 6, Print Found: True
2022-01-04 15:32:33,615  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:32:33,625 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:32:33,626  INFO ilens-edge_engine Count: 7, Print Found: True
2022-01-04 15:32:34,654  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:32:34,669 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:32:34,669  INFO ilens-edge_engine Count: 8, Print Found: True
2022-01-04 15:32:40,404  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:32:40,412 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:32:40,412  INFO ilens-edge_engine Count: 9, Print Found: True
2022-01-04 15:32:41,361  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:32:41,377 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:32:41,378  INFO ilens-edge_engine Count: 10, Print Found: True
2022-01-04 15:32:43,110  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:32:43,129 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:32:43,130  INFO ilens-edge_engine Count: 11, Print Found: True
2022-01-04 15:32:45,410  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:32:45,416 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:32:45,417  INFO ilens-edge_engine Count: 12, Print Found: True
2022-01-04 15:32:49,485  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:32:49,491 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:32:49,491  INFO ilens-edge_engine Count: 13, Print Found: True
2022-01-04 15:32:51,189  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:32:51,199 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:32:51,200  INFO ilens-edge_engine Count: 14, Print Found: True
2022-01-04 15:32:51,865  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:32:51,885 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:32:51,885  INFO ilens-edge_engine Count: 15, Print Found: True
2022-01-04 15:34:04,156  INFO ilens-edge_engine building publishers 
2022-01-04 15:34:04,335  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 15:34:07,338  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 15:34:08,037  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:34:08,070 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:34:08,071  INFO ilens-edge_engine Count: 1, Print Found: True
2022-01-04 15:34:08,498  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:34:08,533 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:34:08,533  INFO ilens-edge_engine Count: 2, Print Found: True
2022-01-04 15:34:14,159  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:34:14,221 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:34:14,222  INFO ilens-edge_engine Count: 3, Print Found: True
2022-01-04 15:34:15,606  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:34:15,621 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:34:15,622  INFO ilens-edge_engine Count: 4, Print Found: True
2022-01-04 15:34:17,231  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:34:17,272 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:34:17,272  INFO ilens-edge_engine Count: 5, Print Found: True
2022-01-04 15:34:19,994  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:34:20,050 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:34:20,051  INFO ilens-edge_engine Count: 6, Print Found: True
2022-01-04 15:34:58,153 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 15:34:58,153 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 15:34:58,200 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,203 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:58,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-04 15:34:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:34:59,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-04 15:34:59,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 15:35:00,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 15:35:00,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-04 15:35:09,942  INFO ilens-edge_engine building publishers 
2022-01-04 15:35:10,084  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 15:35:14,790  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 15:35:15,789  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:35:38,796  INFO ilens-edge_engine building publishers 
2022-01-04 15:35:39,004  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 15:35:41,437  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 15:35:47,256  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:35:56,827 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:35:56,828  INFO ilens-edge_engine Count: 1, Print Found: True
2022-01-04 15:35:57,122  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:35:57,183 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:35:57,184  INFO ilens-edge_engine Count: 2, Print Found: True
2022-01-04 15:35:58,452  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:35:58,459 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:35:58,459  INFO ilens-edge_engine Count: 3, Print Found: True
2022-01-04 15:36:00,068  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:00,215 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:00,215  INFO ilens-edge_engine Count: 4, Print Found: True
2022-01-04 15:36:05,678  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:05,690 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:05,691  INFO ilens-edge_engine Count: 5, Print Found: True
2022-01-04 15:36:07,323  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:07,774 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:07,774  INFO ilens-edge_engine Count: 6, Print Found: True
2022-01-04 15:36:16,822  INFO ilens-edge_engine building publishers 
2022-01-04 15:36:16,977  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 15:36:19,292  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 15:36:21,320  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:21,342 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:21,342  INFO ilens-edge_engine Count: 1, Print Found: True
2022-01-04 15:36:22,065  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:22,099 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:22,100  INFO ilens-edge_engine Count: 2, Print Found: True
2022-01-04 15:36:23,536  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:23,541 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:23,541  INFO ilens-edge_engine Count: 3, Print Found: True
2022-01-04 15:36:24,265  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:24,270 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:24,271  INFO ilens-edge_engine Count: 4, Print Found: True
2022-01-04 15:36:26,723  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:26,736 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:26,736  INFO ilens-edge_engine Count: 5, Print Found: True
2022-01-04 15:36:28,318  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:28,325 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:28,325  INFO ilens-edge_engine Count: 6, Print Found: True
2022-01-04 15:36:29,870  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:29,878 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:29,878  INFO ilens-edge_engine Count: 7, Print Found: True
2022-01-04 15:36:31,576  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:31,589 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:31,589  INFO ilens-edge_engine Count: 8, Print Found: True
2022-01-04 15:36:32,391  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:32,417 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:32,418  INFO ilens-edge_engine Count: 9, Print Found: True
2022-01-04 15:36:33,922  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:33,937 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:33,937  INFO ilens-edge_engine Count: 10, Print Found: True
2022-01-04 15:36:34,795  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:34,824 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:34,825  INFO ilens-edge_engine Count: 11, Print Found: True
2022-01-04 15:36:40,523  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:40,528 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:40,529  INFO ilens-edge_engine Count: 12, Print Found: True
2022-01-04 15:36:41,501  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:41,521 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:41,522  INFO ilens-edge_engine Count: 13, Print Found: True
2022-01-04 15:36:43,214  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:43,220 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:43,220  INFO ilens-edge_engine Count: 14, Print Found: True
2022-01-04 15:36:45,099  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:45,124 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:45,124  INFO ilens-edge_engine Count: 15, Print Found: True
2022-01-04 15:36:46,467  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:46,472 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:46,472  INFO ilens-edge_engine Count: 16, Print Found: True
2022-01-04 15:36:47,205  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:47,304 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:47,304  INFO ilens-edge_engine Count: 17, Print Found: True
2022-01-04 15:36:48,796  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:49,836 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:49,837  INFO ilens-edge_engine Count: 18, Print Found: True
2022-01-04 15:36:51,697  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:36:52,174 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:36:52,174  INFO ilens-edge_engine Count: 19, Print Found: True
2022-01-04 15:39:03,925  INFO ilens-edge_engine building publishers 
2022-01-04 15:39:04,292  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 15:39:07,328  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 15:43:49,382  INFO ilens-edge_engine building publishers 
2022-01-04 15:43:49,516  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 15:43:51,272  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 15:45:10,606  INFO ilens-edge_engine building publishers 
2022-01-04 15:45:10,918  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 15:45:13,325  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 15:47:17,190  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:17,276 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:17,276  INFO ilens-edge_engine Count: 1, Print Found: True
2022-01-04 15:47:19,149  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:19,241 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:19,241  INFO ilens-edge_engine Count: 2, Print Found: True
2022-01-04 15:47:20,920  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:21,033 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:21,033  INFO ilens-edge_engine Count: 3, Print Found: True
2022-01-04 15:47:22,385  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:22,502 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:22,502  INFO ilens-edge_engine Count: 4, Print Found: True
2022-01-04 15:47:28,469  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:28,499 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:28,499  INFO ilens-edge_engine Count: 5, Print Found: True
2022-01-04 15:47:30,092  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:30,183 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:30,183  INFO ilens-edge_engine Count: 6, Print Found: True
2022-01-04 15:47:31,425  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:31,435 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:31,435  INFO ilens-edge_engine Count: 7, Print Found: True
2022-01-04 15:47:33,045  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:33,051 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:33,051  INFO ilens-edge_engine Count: 8, Print Found: True
2022-01-04 15:47:34,444  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:34,458 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:34,459  INFO ilens-edge_engine Count: 9, Print Found: True
2022-01-04 15:47:42,957  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:43,002 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:43,003  INFO ilens-edge_engine Count: 10, Print Found: True
2022-01-04 15:47:43,524  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:43,549 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:43,549  INFO ilens-edge_engine Count: 11, Print Found: True
2022-01-04 15:47:45,074  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:45,098 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:45,099  INFO ilens-edge_engine Count: 12, Print Found: True
2022-01-04 15:47:45,942  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:45,952 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:45,952  INFO ilens-edge_engine Count: 13, Print Found: True
2022-01-04 15:47:47,621  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:47,656 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:47,656  INFO ilens-edge_engine Count: 14, Print Found: True
2022-01-04 15:47:49,217  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:49,293 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:49,294  INFO ilens-edge_engine Count: 15, Print Found: True
2022-01-04 15:47:50,982  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:51,011 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:51,011  INFO ilens-edge_engine Count: 16, Print Found: True
2022-01-04 15:47:51,708  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:51,768 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:51,769  INFO ilens-edge_engine Count: 17, Print Found: True
2022-01-04 15:47:53,240  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:53,335 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:53,335  INFO ilens-edge_engine Count: 18, Print Found: True
2022-01-04 15:47:54,264  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:54,286 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:54,287  INFO ilens-edge_engine Count: 19, Print Found: True
2022-01-04 15:47:59,952  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:47:59,961 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:47:59,961  INFO ilens-edge_engine Count: 20, Print Found: True
2022-01-04 15:48:00,987  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:00,997 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:00,997  INFO ilens-edge_engine Count: 21, Print Found: True
2022-01-04 15:48:02,638  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:02,644 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:02,644  INFO ilens-edge_engine Count: 22, Print Found: True
2022-01-04 15:48:04,440  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:04,486 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:04,486  INFO ilens-edge_engine Count: 23, Print Found: True
2022-01-04 15:48:05,985  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:06,020 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:06,020  INFO ilens-edge_engine Count: 24, Print Found: True
2022-01-04 15:48:07,728  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:07,755 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:07,755  INFO ilens-edge_engine Count: 25, Print Found: True
2022-01-04 15:48:09,432  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:09,464 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:09,464  INFO ilens-edge_engine Count: 26, Print Found: True
2022-01-04 15:48:10,198  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:10,212 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:10,212  INFO ilens-edge_engine Count: 27, Print Found: True
2022-01-04 15:48:11,674  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:11,682 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:11,683  INFO ilens-edge_engine Count: 28, Print Found: True
2022-01-04 15:48:12,363  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:12,376 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:12,377  INFO ilens-edge_engine Count: 29, Print Found: True
2022-01-04 15:48:14,054  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:14,079 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:14,079  INFO ilens-edge_engine Count: 30, Print Found: True
2022-01-04 15:48:19,431  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:19,451 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:19,452  INFO ilens-edge_engine Count: 31, Print Found: True
2022-01-04 15:48:25,071  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:25,080 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:25,081  INFO ilens-edge_engine Count: 32, Print Found: True
2022-01-04 15:48:26,093  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:26,100 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:26,100  INFO ilens-edge_engine Count: 33, Print Found: True
2022-01-04 15:48:27,871  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:27,967 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:27,967  INFO ilens-edge_engine Count: 34, Print Found: True
2022-01-04 15:48:28,597  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:28,636 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:28,636  INFO ilens-edge_engine Count: 35, Print Found: True
2022-01-04 15:48:30,152  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:30,204 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:30,205  INFO ilens-edge_engine Count: 36, Print Found: True
2022-01-04 15:48:33,416  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:33,429 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:33,429  INFO ilens-edge_engine Count: 37, Print Found: True
2022-01-04 15:48:35,037  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:35,056 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:35,057  INFO ilens-edge_engine Count: 38, Print Found: True
2022-01-04 15:48:36,790  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:36,826 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:36,826  INFO ilens-edge_engine Count: 39, Print Found: True
2022-01-04 15:48:38,416  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:38,460 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:38,461  INFO ilens-edge_engine Count: 40, Print Found: True
2022-01-04 15:48:39,087  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:39,093 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:39,093  INFO ilens-edge_engine Count: 41, Print Found: True
2022-01-04 15:48:41,944  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:41,957 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:41,957  INFO ilens-edge_engine Count: 42, Print Found: True
2022-01-04 15:48:47,609  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:47,615 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:47,616  INFO ilens-edge_engine Count: 43, Print Found: True
2022-01-04 15:48:53,260  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:53,403 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:53,403  INFO ilens-edge_engine Count: 44, Print Found: True
2022-01-04 15:48:54,410  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:54,425 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:54,425  INFO ilens-edge_engine Count: 45, Print Found: True
2022-01-04 15:48:55,991  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:55,997 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:55,997  INFO ilens-edge_engine Count: 46, Print Found: True
2022-01-04 15:48:57,716  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:57,752 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:57,753  INFO ilens-edge_engine Count: 47, Print Found: True
2022-01-04 15:48:59,355  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:48:59,361 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:48:59,361  INFO ilens-edge_engine Count: 48, Print Found: True
2022-01-04 15:49:00,117  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:00,159 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:00,159  INFO ilens-edge_engine Count: 49, Print Found: True
2022-01-04 15:49:02,045  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:02,051 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:02,051  INFO ilens-edge_engine Count: 50, Print Found: True
2022-01-04 15:49:03,308  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:03,327 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:03,328  INFO ilens-edge_engine Count: 51, Print Found: True
2022-01-04 15:49:04,931  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:04,948 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:04,948  INFO ilens-edge_engine Count: 52, Print Found: True
2022-01-04 15:49:06,255  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:06,320 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:06,320  INFO ilens-edge_engine Count: 53, Print Found: True
2022-01-04 15:49:07,904  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:07,951 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:07,951  INFO ilens-edge_engine Count: 54, Print Found: True
2022-01-04 15:49:08,600  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:08,606 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:08,606  INFO ilens-edge_engine Count: 55, Print Found: True
2022-01-04 15:49:14,249  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:14,410 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:14,410  INFO ilens-edge_engine Count: 56, Print Found: True
2022-01-04 15:49:15,632  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:15,637 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:15,637  INFO ilens-edge_engine Count: 57, Print Found: True
2022-01-04 15:49:17,202  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:17,209 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:17,209  INFO ilens-edge_engine Count: 58, Print Found: True
2022-01-04 15:49:18,128  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:18,176 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:18,176  INFO ilens-edge_engine Count: 59, Print Found: True
2022-01-04 15:49:22,430  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:22,483 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:22,483  INFO ilens-edge_engine Count: 60, Print Found: True
2022-01-04 15:49:25,084  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:25,090 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:25,090  INFO ilens-edge_engine Count: 61, Print Found: True
2022-01-04 15:49:26,918  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:26,924 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:26,925  INFO ilens-edge_engine Count: 62, Print Found: True
2022-01-04 15:49:32,970  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:33,018 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:33,019  INFO ilens-edge_engine Count: 63, Print Found: True
2022-01-04 15:49:34,676  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:34,682 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:34,683  INFO ilens-edge_engine Count: 64, Print Found: True
2022-01-04 15:49:35,888  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:35,893 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:35,893  INFO ilens-edge_engine Count: 65, Print Found: True
2022-01-04 15:49:37,548  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:37,555 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:37,556  INFO ilens-edge_engine Count: 66, Print Found: True
2022-01-04 15:49:38,773  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:38,778 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:38,779  INFO ilens-edge_engine Count: 67, Print Found: True
2022-01-04 15:49:44,368  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:44,403 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:44,404  INFO ilens-edge_engine Count: 68, Print Found: True
2022-01-04 15:49:45,729  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:45,738 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:45,738  INFO ilens-edge_engine Count: 69, Print Found: True
2022-01-04 15:49:47,343  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:47,367 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:47,367  INFO ilens-edge_engine Count: 70, Print Found: True
2022-01-04 15:49:49,094  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:49,102 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:49,103  INFO ilens-edge_engine Count: 71, Print Found: True
2022-01-04 15:49:50,716  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:50,764 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:50,764  INFO ilens-edge_engine Count: 72, Print Found: True
2022-01-04 15:49:51,532  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:51,575 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:51,576  INFO ilens-edge_engine Count: 73, Print Found: True
2022-01-04 15:49:53,212  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:53,244 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:53,244  INFO ilens-edge_engine Count: 74, Print Found: True
2022-01-04 15:49:54,315  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:54,339 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:54,340  INFO ilens-edge_engine Count: 75, Print Found: True
2022-01-04 15:49:56,725  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:56,730 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:56,730  INFO ilens-edge_engine Count: 76, Print Found: True
2022-01-04 15:49:57,523  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:57,534 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:57,534  INFO ilens-edge_engine Count: 77, Print Found: True
2022-01-04 15:49:59,127  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:49:59,170 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:49:59,170  INFO ilens-edge_engine Count: 78, Print Found: True
2022-01-04 15:50:01,290  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:01,349 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:01,349  INFO ilens-edge_engine Count: 79, Print Found: True
2022-01-04 15:50:06,964  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:06,973 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:06,973  INFO ilens-edge_engine Count: 80, Print Found: True
2022-01-04 15:50:08,162  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:08,168 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:08,168  INFO ilens-edge_engine Count: 81, Print Found: True
2022-01-04 15:50:09,829  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:09,894 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:09,895  INFO ilens-edge_engine Count: 82, Print Found: True
2022-01-04 15:50:13,152  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:13,530 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:13,530  INFO ilens-edge_engine Count: 83, Print Found: True
2022-01-04 15:50:14,906  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:14,936 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:14,937  INFO ilens-edge_engine Count: 84, Print Found: True
2022-01-04 15:50:15,765  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:15,771 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:15,771  INFO ilens-edge_engine Count: 85, Print Found: True
2022-01-04 15:50:17,373  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:17,379 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:17,379  INFO ilens-edge_engine Count: 86, Print Found: True
2022-01-04 15:50:19,006  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:19,011 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:19,012  INFO ilens-edge_engine Count: 87, Print Found: True
2022-01-04 15:50:20,939  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:20,966 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:20,966  INFO ilens-edge_engine Count: 88, Print Found: True
2022-01-04 15:50:21,742  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:21,763 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:21,764  INFO ilens-edge_engine Count: 89, Print Found: True
2022-01-04 15:50:24,216  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:24,222 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:24,222  INFO ilens-edge_engine Count: 90, Print Found: True
2022-01-04 15:50:25,548  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:25,598 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:25,599  INFO ilens-edge_engine Count: 91, Print Found: True
2022-01-04 15:50:33,580  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:33,594 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:33,594  INFO ilens-edge_engine Count: 92, Print Found: True
2022-01-04 15:50:34,507  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:34,514 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:34,515  INFO ilens-edge_engine Count: 93, Print Found: True
2022-01-04 15:50:36,155  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:36,162 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:36,162  INFO ilens-edge_engine Count: 94, Print Found: True
2022-01-04 15:50:37,836  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:37,852 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:37,853  INFO ilens-edge_engine Count: 95, Print Found: True
2022-01-04 15:50:39,442  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:39,449 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:39,449  INFO ilens-edge_engine Count: 96, Print Found: True
2022-01-04 15:50:40,540  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:40,545 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:40,545  INFO ilens-edge_engine Count: 97, Print Found: True
2022-01-04 15:50:42,272  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:42,279 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:42,279  INFO ilens-edge_engine Count: 98, Print Found: True
2022-01-04 15:50:42,933  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:42,938 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:42,939  INFO ilens-edge_engine Count: 99, Print Found: True
2022-01-04 15:50:44,557  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:44,564 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:44,564  INFO ilens-edge_engine Count: 100, Print Found: True
2022-01-04 15:50:47,113  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:47,134 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:47,135  INFO ilens-edge_engine Count: 101, Print Found: True
2022-01-04 15:50:48,890  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:48,904 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:48,905  INFO ilens-edge_engine Count: 102, Print Found: True
2022-01-04 15:50:51,460  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:51,481 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:51,481  INFO ilens-edge_engine Count: 103, Print Found: True
2022-01-04 15:50:57,186  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:57,308 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:57,308  INFO ilens-edge_engine Count: 104, Print Found: True
2022-01-04 15:50:58,421  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:50:58,430 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:50:58,431  INFO ilens-edge_engine Count: 105, Print Found: True
2022-01-04 15:51:00,121  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:00,150 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:00,151  INFO ilens-edge_engine Count: 106, Print Found: True
2022-01-04 15:51:05,713  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:05,734 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:05,734  INFO ilens-edge_engine Count: 107, Print Found: True
2022-01-04 15:51:07,342  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:07,351 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:07,351  INFO ilens-edge_engine Count: 108, Print Found: True
2022-01-04 15:51:08,582  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:08,594 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:08,594  INFO ilens-edge_engine Count: 109, Print Found: True
2022-01-04 15:51:10,264  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:10,275 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:10,275  INFO ilens-edge_engine Count: 110, Print Found: True
2022-01-04 15:51:11,123  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:11,201 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:11,201  INFO ilens-edge_engine Count: 111, Print Found: True
2022-01-04 15:51:12,601  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:12,608 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:12,608  INFO ilens-edge_engine Count: 112, Print Found: True
2022-01-04 15:51:13,356  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:13,397 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:13,397  INFO ilens-edge_engine Count: 113, Print Found: True
2022-01-04 15:51:15,023  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:15,029 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:15,030  INFO ilens-edge_engine Count: 114, Print Found: True
2022-01-04 15:51:15,716  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:15,745 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:15,745  INFO ilens-edge_engine Count: 115, Print Found: True
2022-01-04 15:51:21,293  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:21,300 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:21,300  INFO ilens-edge_engine Count: 116, Print Found: True
2022-01-04 15:51:21,997  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:22,004 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:22,005  INFO ilens-edge_engine Count: 117, Print Found: True
2022-01-04 15:51:23,643  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:23,648 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:23,648  INFO ilens-edge_engine Count: 118, Print Found: True
2022-01-04 15:51:24,334  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:24,339 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:24,339  INFO ilens-edge_engine Count: 119, Print Found: True
2022-01-04 15:51:25,855  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:25,868 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:25,868  INFO ilens-edge_engine Count: 120, Print Found: True
2022-01-04 15:51:26,716  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:26,722 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:26,728  INFO ilens-edge_engine Count: 121, Print Found: True
2022-01-04 15:51:28,381  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:28,437 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:28,437  INFO ilens-edge_engine Count: 122, Print Found: True
2022-01-04 15:51:29,957  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:29,973 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:29,973  INFO ilens-edge_engine Count: 123, Print Found: True
2022-01-04 15:51:31,629  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:31,641 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:31,641  INFO ilens-edge_engine Count: 124, Print Found: True
2022-01-04 15:51:32,334  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:32,339 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:32,340  INFO ilens-edge_engine Count: 125, Print Found: True
2022-01-04 15:51:33,965  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:34,342 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:34,342  INFO ilens-edge_engine Count: 126, Print Found: True
2022-01-04 15:51:40,600  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:40,622 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:40,622  INFO ilens-edge_engine Count: 127, Print Found: True
2022-01-04 15:51:41,599  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:41,612 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:41,612  INFO ilens-edge_engine Count: 128, Print Found: True
2022-01-04 15:51:43,263  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:43,280 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:43,280  INFO ilens-edge_engine Count: 129, Print Found: True
2022-01-04 15:51:44,878  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:44,886 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:44,886  INFO ilens-edge_engine Count: 130, Print Found: True
2022-01-04 15:51:46,546  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:46,559 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:46,560  INFO ilens-edge_engine Count: 131, Print Found: True
2022-01-04 15:51:47,242  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:47,284 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:47,285  INFO ilens-edge_engine Count: 132, Print Found: True
2022-01-04 15:51:48,888  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:48,921 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:48,922  INFO ilens-edge_engine Count: 133, Print Found: True
2022-01-04 15:51:50,138  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:50,173 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:50,173  INFO ilens-edge_engine Count: 134, Print Found: True
2022-01-04 15:51:51,772  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:51,799 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:51,800  INFO ilens-edge_engine Count: 135, Print Found: True
2022-01-04 15:51:52,502  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:52,515 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:52,515  INFO ilens-edge_engine Count: 136, Print Found: True
2022-01-04 15:51:53,864  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:53,869 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:53,870  INFO ilens-edge_engine Count: 137, Print Found: True
2022-01-04 15:51:54,548  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:51:54,557 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:51:54,557  INFO ilens-edge_engine Count: 138, Print Found: True
2022-01-04 15:52:00,183  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:00,194 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:00,195  INFO ilens-edge_engine Count: 139, Print Found: True
2022-01-04 15:52:01,249  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:01,256 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:01,256  INFO ilens-edge_engine Count: 140, Print Found: True
2022-01-04 15:52:03,024  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:03,032 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:03,033  INFO ilens-edge_engine Count: 141, Print Found: True
2022-01-04 15:52:03,735  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:03,755 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:03,755  INFO ilens-edge_engine Count: 142, Print Found: True
2022-01-04 15:52:05,392  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:05,415 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:05,415  INFO ilens-edge_engine Count: 143, Print Found: True
2022-01-04 15:52:06,078  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:06,129 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:06,130  INFO ilens-edge_engine Count: 144, Print Found: True
2022-01-04 15:52:09,349  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:09,445 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:09,445  INFO ilens-edge_engine Count: 145, Print Found: True
2022-01-04 15:52:10,988  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:11,004 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:11,004  INFO ilens-edge_engine Count: 146, Print Found: True
2022-01-04 15:52:12,684  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:12,698 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:12,699  INFO ilens-edge_engine Count: 147, Print Found: True
2022-01-04 15:52:13,412  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:13,420 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:13,420  INFO ilens-edge_engine Count: 148, Print Found: True
2022-01-04 15:52:14,978  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:14,983 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:14,983  INFO ilens-edge_engine Count: 149, Print Found: True
2022-01-04 15:52:15,692  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:15,711 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:15,711  INFO ilens-edge_engine Count: 150, Print Found: True
2022-01-04 15:52:21,302  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:21,307 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:21,308  INFO ilens-edge_engine Count: 151, Print Found: True
2022-01-04 15:52:23,244  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:23,250 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:23,251  INFO ilens-edge_engine Count: 152, Print Found: True
2022-01-04 15:52:24,897  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:24,903 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:24,904  INFO ilens-edge_engine Count: 153, Print Found: True
2022-01-04 15:52:27,670  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:27,676 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:27,677  INFO ilens-edge_engine Count: 154, Print Found: True
2022-01-04 15:52:30,027  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:30,032 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:30,033  INFO ilens-edge_engine Count: 155, Print Found: True
2022-01-04 15:52:32,126  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:32,185 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:32,186  INFO ilens-edge_engine Count: 156, Print Found: True
2022-01-04 15:52:33,830  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:33,840 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:33,841  INFO ilens-edge_engine Count: 157, Print Found: True
2022-01-04 15:52:36,006  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:36,046 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:36,046  INFO ilens-edge_engine Count: 158, Print Found: True
2022-01-04 15:52:37,563  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:37,576 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:37,576  INFO ilens-edge_engine Count: 159, Print Found: True
2022-01-04 15:52:44,320  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:52:44,326 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:52:44,326  INFO ilens-edge_engine Count: 160, Print Found: True
2022-01-04 15:53:02,730  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:53:02,777 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:53:02,777  INFO ilens-edge_engine Count: 161, Print Found: True
2022-01-04 15:53:04,769  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:53:04,803 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:53:04,803  INFO ilens-edge_engine Count: 162, Print Found: True
2022-01-04 15:53:10,401  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:53:10,421 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:53:10,421  INFO ilens-edge_engine Count: 163, Print Found: True
2022-01-04 15:53:12,553  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:53:12,576 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:53:12,577  INFO ilens-edge_engine Count: 164, Print Found: True
2022-01-04 15:53:19,620  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:53:19,681 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:53:19,682  INFO ilens-edge_engine Count: 165, Print Found: True
2022-01-04 15:53:20,579  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:53:20,652 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:53:20,652  INFO ilens-edge_engine Count: 166, Print Found: True
2022-01-04 15:53:23,121  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:53:23,137 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:53:23,137  INFO ilens-edge_engine Count: 167, Print Found: True
2022-01-04 15:53:24,022  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:53:24,054 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:53:24,054  INFO ilens-edge_engine Count: 168, Print Found: True
2022-01-04 15:53:25,879  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:53:25,901 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:53:25,901  INFO ilens-edge_engine Count: 169, Print Found: True
2022-01-04 15:53:27,510  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:53:27,528 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:53:27,529  INFO ilens-edge_engine Count: 170, Print Found: True
2022-01-04 15:53:29,214  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:53:29,219 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:53:29,220  INFO ilens-edge_engine Count: 171, Print Found: True
2022-01-04 15:53:30,002  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:53:30,009 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:53:30,009  INFO ilens-edge_engine Count: 172, Print Found: True
2022-01-04 15:53:31,706  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:53:31,755 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:53:31,755  INFO ilens-edge_engine Count: 173, Print Found: True
2022-01-04 15:53:33,661  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:53:33,683 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:53:33,683  INFO ilens-edge_engine Count: 174, Print Found: True
2022-01-04 15:53:39,270  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:53:39,301 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:53:39,302  INFO ilens-edge_engine Count: 175, Print Found: True
2022-01-04 15:53:40,517  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:53:40,531 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:53:40,531  INFO ilens-edge_engine Count: 176, Print Found: True
2022-01-04 15:53:42,246  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 15:53:42,269 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 15:53:42,269  INFO ilens-edge_engine Count: 177, Print Found: True
2022-01-04 16:00:48,481  INFO ilens-edge_engine building publishers 
2022-01-04 16:00:48,603  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 16:00:50,938  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 16:01:08,251  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:01:08,286 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:01:08,287  INFO ilens-edge_engine Count: 1, Print Found: True
2022-01-04 16:01:16,426  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:01:16,438 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:01:16,439  INFO ilens-edge_engine Count: 2, Print Found: True
2022-01-04 16:02:20,259  INFO ilens-edge_engine building publishers 
2022-01-04 16:02:20,365  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 16:02:23,255  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 16:02:26,952  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:02:26,963 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:02:26,963  INFO ilens-edge_engine Count: 1, Print Found: True
2022-01-04 16:02:43,850  INFO ilens-edge_engine building publishers 
2022-01-04 16:02:46,072  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 16:02:55,141  INFO ilens-edge_engine building publishers 
2022-01-04 16:02:55,248  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 16:02:56,920  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 16:03:10,338  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:10,346 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:10,346  INFO ilens-edge_engine Count: 1, Print Found: True
2022-01-04 16:03:14,649  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:14,660 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:14,660  INFO ilens-edge_engine Count: 2, Print Found: True
2022-01-04 16:03:18,371  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:18,770 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:18,770  INFO ilens-edge_engine Count: 3, Print Found: True
2022-01-04 16:03:30,965  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:30,988 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:30,989  INFO ilens-edge_engine Count: 4, Print Found: True
2022-01-04 16:03:32,666  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:32,672 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:32,672  INFO ilens-edge_engine Count: 5, Print Found: True
2022-01-04 16:03:34,371  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:34,385 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:34,385  INFO ilens-edge_engine Count: 6, Print Found: True
2022-01-04 16:03:36,113  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:36,136 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:36,137  INFO ilens-edge_engine Count: 7, Print Found: True
2022-01-04 16:03:42,136  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:42,167 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:42,168  INFO ilens-edge_engine Count: 8, Print Found: True
2022-01-04 16:03:43,765  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:43,813 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:43,814  INFO ilens-edge_engine Count: 9, Print Found: True
2022-01-04 16:03:45,037  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:45,043 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:45,044  INFO ilens-edge_engine Count: 10, Print Found: True
2022-01-04 16:03:46,749  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:46,771 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:46,772  INFO ilens-edge_engine Count: 11, Print Found: True
2022-01-04 16:03:48,149  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:48,224 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:48,224  INFO ilens-edge_engine Count: 12, Print Found: True
2022-01-04 16:03:53,802  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:53,823 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:53,823  INFO ilens-edge_engine Count: 13, Print Found: True
2022-01-04 16:03:54,725  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:54,764 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:54,764  INFO ilens-edge_engine Count: 14, Print Found: True
2022-01-04 16:03:56,520  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:56,525 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:56,525  INFO ilens-edge_engine Count: 15, Print Found: True
2022-01-04 16:03:57,160  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:57,165 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:57,165  INFO ilens-edge_engine Count: 16, Print Found: True
2022-01-04 16:03:58,788  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:58,796 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:58,797  INFO ilens-edge_engine Count: 17, Print Found: True
2022-01-04 16:03:59,669  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:03:59,674 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:03:59,675  INFO ilens-edge_engine Count: 18, Print Found: True
2022-01-04 16:04:01,326  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:01,334 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:01,334  INFO ilens-edge_engine Count: 19, Print Found: True
2022-01-04 16:04:02,976  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:02,981 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:02,981  INFO ilens-edge_engine Count: 20, Print Found: True
2022-01-04 16:04:04,591  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:04,604 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:04,604  INFO ilens-edge_engine Count: 21, Print Found: True
2022-01-04 16:04:05,237  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:05,252 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:05,252  INFO ilens-edge_engine Count: 22, Print Found: True
2022-01-04 16:04:06,854  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:06,859 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:06,859  INFO ilens-edge_engine Count: 23, Print Found: True
2022-01-04 16:04:07,979  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:07,987 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:07,987  INFO ilens-edge_engine Count: 24, Print Found: True
2022-01-04 16:04:13,690  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:13,701 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:13,702  INFO ilens-edge_engine Count: 25, Print Found: True
2022-01-04 16:04:14,682  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:14,700 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:14,700  INFO ilens-edge_engine Count: 26, Print Found: True
2022-01-04 16:04:16,440  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:16,467 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:16,467  INFO ilens-edge_engine Count: 27, Print Found: True
2022-01-04 16:04:18,102  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:18,128 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:18,128  INFO ilens-edge_engine Count: 28, Print Found: True
2022-01-04 16:04:19,705  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:19,744 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:19,745  INFO ilens-edge_engine Count: 29, Print Found: True
2022-01-04 16:04:21,449  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:21,460 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:21,460  INFO ilens-edge_engine Count: 30, Print Found: True
2022-01-04 16:04:23,065  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:23,073 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:23,073  INFO ilens-edge_engine Count: 31, Print Found: True
2022-01-04 16:04:23,828  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:23,873 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:23,873  INFO ilens-edge_engine Count: 32, Print Found: True
2022-01-04 16:04:25,312  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:25,320 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:25,321  INFO ilens-edge_engine Count: 33, Print Found: True
2022-01-04 16:04:26,094  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:26,099 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:26,099  INFO ilens-edge_engine Count: 34, Print Found: True
2022-01-04 16:04:27,697  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:27,746 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:27,747  INFO ilens-edge_engine Count: 35, Print Found: True
2022-01-04 16:04:33,201  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:35,708 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:35,708  INFO ilens-edge_engine Count: 36, Print Found: True
2022-01-04 16:04:38,843  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:38,854 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:38,855  INFO ilens-edge_engine Count: 37, Print Found: True
2022-01-04 16:04:39,836  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:39,933 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:39,933  INFO ilens-edge_engine Count: 38, Print Found: True
2022-01-04 16:04:41,542  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:41,568 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:41,568  INFO ilens-edge_engine Count: 39, Print Found: True
2022-01-04 16:04:42,163  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:42,170 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:42,170  INFO ilens-edge_engine Count: 40, Print Found: True
2022-01-04 16:04:43,863  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:43,911 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:43,911  INFO ilens-edge_engine Count: 41, Print Found: True
2022-01-04 16:04:47,135  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:47,145 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:47,145  INFO ilens-edge_engine Count: 42, Print Found: True
2022-01-04 16:04:48,746  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:48,763 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:48,763  INFO ilens-edge_engine Count: 43, Print Found: True
2022-01-04 16:04:50,460  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:50,606 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:50,606  INFO ilens-edge_engine Count: 44, Print Found: True
2022-01-04 16:04:52,046  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:52,129 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:52,130  INFO ilens-edge_engine Count: 45, Print Found: True
2022-01-04 16:04:53,117  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:53,135 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:53,136  INFO ilens-edge_engine Count: 46, Print Found: True
2022-01-04 16:04:55,575  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:04:55,581 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:04:55,581  INFO ilens-edge_engine Count: 47, Print Found: True
2022-01-04 16:05:01,206  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:01,228 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:01,228  INFO ilens-edge_engine Count: 48, Print Found: True
2022-01-04 16:05:06,985  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:07,060 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:07,060  INFO ilens-edge_engine Count: 49, Print Found: True
2022-01-04 16:05:08,070  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:08,076 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:08,076  INFO ilens-edge_engine Count: 50, Print Found: True
2022-01-04 16:05:09,659  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:09,670 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:09,670  INFO ilens-edge_engine Count: 51, Print Found: True
2022-01-04 16:05:11,383  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:11,389 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:11,390  INFO ilens-edge_engine Count: 52, Print Found: True
2022-01-04 16:05:13,016  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:13,039 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:13,040  INFO ilens-edge_engine Count: 53, Print Found: True
2022-01-04 16:05:13,660  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:13,666 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:13,666  INFO ilens-edge_engine Count: 54, Print Found: True
2022-01-04 16:05:15,643  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:15,652 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:15,653  INFO ilens-edge_engine Count: 55, Print Found: True
2022-01-04 16:05:17,008  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:17,064 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:17,064  INFO ilens-edge_engine Count: 56, Print Found: True
2022-01-04 16:05:19,907  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:19,912 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:19,912  INFO ilens-edge_engine Count: 57, Print Found: True
2022-01-04 16:05:21,502  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:21,507 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:21,508  INFO ilens-edge_engine Count: 58, Print Found: True
2022-01-04 16:05:22,266  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:22,286 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:22,286  INFO ilens-edge_engine Count: 59, Print Found: True
2022-01-04 16:05:27,901  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:27,960 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:27,960  INFO ilens-edge_engine Count: 60, Print Found: True
2022-01-04 16:05:29,215  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:29,223 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:29,223  INFO ilens-edge_engine Count: 61, Print Found: True
2022-01-04 16:05:30,971  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:30,981 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:30,982  INFO ilens-edge_engine Count: 62, Print Found: True
2022-01-04 16:05:31,719  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:31,731 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:31,732  INFO ilens-edge_engine Count: 63, Print Found: True
2022-01-04 16:05:35,943  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:36,052 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:36,052  INFO ilens-edge_engine Count: 64, Print Found: True
2022-01-04 16:05:38,816  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:38,824 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:38,824  INFO ilens-edge_engine Count: 65, Print Found: True
2022-01-04 16:05:40,606  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:40,646 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:40,647  INFO ilens-edge_engine Count: 66, Print Found: True
2022-01-04 16:05:46,706  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:46,712 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:46,712  INFO ilens-edge_engine Count: 67, Print Found: True
2022-01-04 16:05:48,388  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:48,429 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:48,430  INFO ilens-edge_engine Count: 68, Print Found: True
2022-01-04 16:05:49,656  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:49,664 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:49,665  INFO ilens-edge_engine Count: 69, Print Found: True
2022-01-04 16:05:51,305  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:51,325 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:51,326  INFO ilens-edge_engine Count: 70, Print Found: True
2022-01-04 16:05:52,331  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:52,728 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:52,728  INFO ilens-edge_engine Count: 71, Print Found: True
2022-01-04 16:05:58,050  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:58,065 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:58,065  INFO ilens-edge_engine Count: 72, Print Found: True
2022-01-04 16:05:59,322  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:05:59,334 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:05:59,334  INFO ilens-edge_engine Count: 73, Print Found: True
2022-01-04 16:06:02,812  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:02,825 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:02,825  INFO ilens-edge_engine Count: 74, Print Found: True
2022-01-04 16:06:04,336  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:04,346 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:04,346  INFO ilens-edge_engine Count: 75, Print Found: True
2022-01-04 16:06:05,232  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:05,257 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:05,257  INFO ilens-edge_engine Count: 76, Print Found: True
2022-01-04 16:06:06,897  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:06,907 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:06,907  INFO ilens-edge_engine Count: 77, Print Found: True
2022-01-04 16:06:08,048  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:08,062 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:08,062  INFO ilens-edge_engine Count: 78, Print Found: True
2022-01-04 16:06:10,341  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:10,349 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:10,349  INFO ilens-edge_engine Count: 79, Print Found: True
2022-01-04 16:06:11,234  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:11,268 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:11,268  INFO ilens-edge_engine Count: 80, Print Found: True
2022-01-04 16:06:12,920  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:12,943 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:12,943  INFO ilens-edge_engine Count: 81, Print Found: True
2022-01-04 16:06:15,076  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:15,085 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:15,085  INFO ilens-edge_engine Count: 82, Print Found: True
2022-01-04 16:06:20,631  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:20,658 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:20,658  INFO ilens-edge_engine Count: 83, Print Found: True
2022-01-04 16:06:21,821  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:21,826 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:21,826  INFO ilens-edge_engine Count: 84, Print Found: True
2022-01-04 16:06:23,509  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:23,543 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:23,543  INFO ilens-edge_engine Count: 85, Print Found: True
2022-01-04 16:06:26,761  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:26,766 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:26,767  INFO ilens-edge_engine Count: 86, Print Found: True
2022-01-04 16:06:28,452  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:28,467 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:28,467  INFO ilens-edge_engine Count: 87, Print Found: True
2022-01-04 16:06:29,361  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:29,550 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:29,550  INFO ilens-edge_engine Count: 88, Print Found: True
2022-01-04 16:06:30,953  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:30,981 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:30,981  INFO ilens-edge_engine Count: 89, Print Found: True
2022-01-04 16:06:32,754  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:32,775 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:32,775  INFO ilens-edge_engine Count: 90, Print Found: True
2022-01-04 16:06:34,631  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:34,658 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:34,659  INFO ilens-edge_engine Count: 91, Print Found: True
2022-01-04 16:06:35,542  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:35,547 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:35,547  INFO ilens-edge_engine Count: 92, Print Found: True
2022-01-04 16:06:37,905  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:37,911 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:37,911  INFO ilens-edge_engine Count: 93, Print Found: True
2022-01-04 16:06:39,283  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:39,315 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:39,315  INFO ilens-edge_engine Count: 94, Print Found: True
2022-01-04 16:06:47,189  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:47,198 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:47,199  INFO ilens-edge_engine Count: 95, Print Found: True
2022-01-04 16:06:48,213  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:48,224 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:48,225  INFO ilens-edge_engine Count: 96, Print Found: True
2022-01-04 16:06:49,858  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:49,875 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:49,875  INFO ilens-edge_engine Count: 97, Print Found: True
2022-01-04 16:06:51,545  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:51,557 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:51,558  INFO ilens-edge_engine Count: 98, Print Found: True
2022-01-04 16:06:53,203  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:53,254 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:53,254  INFO ilens-edge_engine Count: 99, Print Found: True
2022-01-04 16:06:54,152  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:54,200 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:54,200  INFO ilens-edge_engine Count: 100, Print Found: True
2022-01-04 16:06:55,877  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:55,912 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:55,913  INFO ilens-edge_engine Count: 101, Print Found: True
2022-01-04 16:06:56,549  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:56,555 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:56,555  INFO ilens-edge_engine Count: 102, Print Found: True
2022-01-04 16:06:58,185  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:06:58,190 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:06:58,190  INFO ilens-edge_engine Count: 103, Print Found: True
2022-01-04 16:07:00,832  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:00,843 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:00,843  INFO ilens-edge_engine Count: 104, Print Found: True
2022-01-04 16:07:02,550  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:02,561 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:02,562  INFO ilens-edge_engine Count: 105, Print Found: True
2022-01-04 16:07:05,252  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:05,259 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:05,259  INFO ilens-edge_engine Count: 106, Print Found: True
2022-01-04 16:07:10,926  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:10,960 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:10,960  INFO ilens-edge_engine Count: 107, Print Found: True
2022-01-04 16:07:12,109  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:12,114 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:12,114  INFO ilens-edge_engine Count: 108, Print Found: True
2022-01-04 16:07:13,778  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:13,796 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:13,796  INFO ilens-edge_engine Count: 109, Print Found: True
2022-01-04 16:07:19,521  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:19,537 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:19,538  INFO ilens-edge_engine Count: 110, Print Found: True
2022-01-04 16:07:21,042  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:21,051 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:21,051  INFO ilens-edge_engine Count: 111, Print Found: True
2022-01-04 16:07:22,280  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:22,289 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:22,290  INFO ilens-edge_engine Count: 112, Print Found: True
2022-01-04 16:07:24,051  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:24,063 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:24,063  INFO ilens-edge_engine Count: 113, Print Found: True
2022-01-04 16:07:24,780  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:24,785 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:24,785  INFO ilens-edge_engine Count: 114, Print Found: True
2022-01-04 16:07:26,356  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:26,368 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:26,368  INFO ilens-edge_engine Count: 115, Print Found: True
2022-01-04 16:07:27,082  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:27,088 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:27,088  INFO ilens-edge_engine Count: 116, Print Found: True
2022-01-04 16:07:28,622  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:28,628 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:28,628  INFO ilens-edge_engine Count: 117, Print Found: True
2022-01-04 16:07:29,419  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:29,424 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:29,424  INFO ilens-edge_engine Count: 118, Print Found: True
2022-01-04 16:07:35,054  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:35,059 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:35,059  INFO ilens-edge_engine Count: 119, Print Found: True
2022-01-04 16:07:35,840  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:35,854 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:35,854  INFO ilens-edge_engine Count: 120, Print Found: True
2022-01-04 16:07:37,276  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:37,293 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:37,294  INFO ilens-edge_engine Count: 121, Print Found: True
2022-01-04 16:07:37,945  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:37,951 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:37,951  INFO ilens-edge_engine Count: 122, Print Found: True
2022-01-04 16:07:39,541  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:39,548 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:39,548  INFO ilens-edge_engine Count: 123, Print Found: True
2022-01-04 16:07:40,335  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:40,345 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:40,346  INFO ilens-edge_engine Count: 124, Print Found: True
2022-01-04 16:07:42,059  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:42,086 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:42,086  INFO ilens-edge_engine Count: 125, Print Found: True
2022-01-04 16:07:43,640  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:43,652 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:43,652  INFO ilens-edge_engine Count: 126, Print Found: True
2022-01-04 16:07:45,394  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:45,400 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:45,400  INFO ilens-edge_engine Count: 127, Print Found: True
2022-01-04 16:07:46,073  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:46,118 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:46,119  INFO ilens-edge_engine Count: 128, Print Found: True
2022-01-04 16:07:47,671  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:47,677 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:47,678  INFO ilens-edge_engine Count: 129, Print Found: True
2022-01-04 16:07:48,570  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:48,575 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:48,575  INFO ilens-edge_engine Count: 130, Print Found: True
2022-01-04 16:07:54,253  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:54,305 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:54,305  INFO ilens-edge_engine Count: 131, Print Found: True
2022-01-04 16:07:55,287  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:55,296 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:55,296  INFO ilens-edge_engine Count: 132, Print Found: True
2022-01-04 16:07:56,915  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:56,931 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:56,932  INFO ilens-edge_engine Count: 133, Print Found: True
2022-01-04 16:07:58,620  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:07:58,627 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:07:58,627  INFO ilens-edge_engine Count: 134, Print Found: True
2022-01-04 16:08:00,212  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:00,219 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:00,219  INFO ilens-edge_engine Count: 135, Print Found: True
2022-01-04 16:08:00,907  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:00,933 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:00,933  INFO ilens-edge_engine Count: 136, Print Found: True
2022-01-04 16:08:02,522  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:02,528 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:02,528  INFO ilens-edge_engine Count: 137, Print Found: True
2022-01-04 16:08:03,738  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:03,744 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:03,744  INFO ilens-edge_engine Count: 138, Print Found: True
2022-01-04 16:08:05,479  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:05,490 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:05,491  INFO ilens-edge_engine Count: 139, Print Found: True
2022-01-04 16:08:06,113  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:06,123 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:06,124  INFO ilens-edge_engine Count: 140, Print Found: True
2022-01-04 16:08:07,546  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:07,555 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:07,555  INFO ilens-edge_engine Count: 141, Print Found: True
2022-01-04 16:08:08,202  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:08,211 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:08,212  INFO ilens-edge_engine Count: 142, Print Found: True
2022-01-04 16:08:13,827  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:13,841 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:13,841  INFO ilens-edge_engine Count: 143, Print Found: True
2022-01-04 16:08:14,908  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:14,960 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:14,960  INFO ilens-edge_engine Count: 144, Print Found: True
2022-01-04 16:08:16,632  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:16,642 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:16,642  INFO ilens-edge_engine Count: 145, Print Found: True
2022-01-04 16:08:17,382  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:17,394 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:17,394  INFO ilens-edge_engine Count: 146, Print Found: True
2022-01-04 16:08:19,030  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:19,068 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:19,069  INFO ilens-edge_engine Count: 147, Print Found: True
2022-01-04 16:08:19,731  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:19,768 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:19,768  INFO ilens-edge_engine Count: 148, Print Found: True
2022-01-04 16:08:23,053  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:23,067 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:23,068  INFO ilens-edge_engine Count: 149, Print Found: True
2022-01-04 16:08:24,629  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:24,644 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:24,645  INFO ilens-edge_engine Count: 150, Print Found: True
2022-01-04 16:08:26,326  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:26,335 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:26,335  INFO ilens-edge_engine Count: 151, Print Found: True
2022-01-04 16:08:27,123  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:27,142 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:27,142  INFO ilens-edge_engine Count: 152, Print Found: True
2022-01-04 16:08:28,668  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:28,685 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:28,686  INFO ilens-edge_engine Count: 153, Print Found: True
2022-01-04 16:08:29,326  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:29,336 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:29,337  INFO ilens-edge_engine Count: 154, Print Found: True
2022-01-04 16:08:35,020  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:35,025 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:35,026  INFO ilens-edge_engine Count: 155, Print Found: True
2022-01-04 16:08:36,965  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:36,997 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:36,998  INFO ilens-edge_engine Count: 156, Print Found: True
2022-01-04 16:08:38,676  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:38,708 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:38,709  INFO ilens-edge_engine Count: 157, Print Found: True
2022-01-04 16:08:41,257  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:41,295 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:41,295  INFO ilens-edge_engine Count: 158, Print Found: True
2022-01-04 16:08:43,692  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:43,697 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:43,697  INFO ilens-edge_engine Count: 159, Print Found: True
2022-01-04 16:08:45,760  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:45,781 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:45,781  INFO ilens-edge_engine Count: 160, Print Found: True
2022-01-04 16:08:47,499  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:47,514 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:47,514  INFO ilens-edge_engine Count: 161, Print Found: True
2022-01-04 16:08:49,586  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:49,606 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:49,607  INFO ilens-edge_engine Count: 162, Print Found: True
2022-01-04 16:08:58,012  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:08:58,033 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:08:58,033  INFO ilens-edge_engine Count: 163, Print Found: True
2022-01-04 16:09:16,432  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:09:16,455 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:09:16,455  INFO ilens-edge_engine Count: 164, Print Found: True
2022-01-04 16:09:18,379  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:09:18,398 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:09:18,399  INFO ilens-edge_engine Count: 165, Print Found: True
2022-01-04 16:09:24,034  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:09:24,042 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:09:24,043  INFO ilens-edge_engine Count: 166, Print Found: True
2022-01-04 16:09:26,164  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:09:26,190 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:09:26,190  INFO ilens-edge_engine Count: 167, Print Found: True
2022-01-04 16:09:33,368  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:09:33,389 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:09:33,389  INFO ilens-edge_engine Count: 168, Print Found: True
2022-01-04 16:09:34,325  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:09:34,368 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:09:34,369  INFO ilens-edge_engine Count: 169, Print Found: True
2022-01-04 16:09:36,858  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:09:36,879 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:09:36,879  INFO ilens-edge_engine Count: 170, Print Found: True
2022-01-04 16:09:37,733  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:09:37,745 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:09:37,746  INFO ilens-edge_engine Count: 171, Print Found: True
2022-01-04 16:09:39,634  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:09:39,701 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:09:39,701  INFO ilens-edge_engine Count: 172, Print Found: True
2022-01-04 16:09:41,217  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:09:41,227 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:09:41,228  INFO ilens-edge_engine Count: 173, Print Found: True
2022-01-04 16:09:43,765  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:09:43,788 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:09:43,788  INFO ilens-edge_engine Count: 174, Print Found: True
2022-01-04 16:09:45,528  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:09:45,536 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:09:45,536  INFO ilens-edge_engine Count: 175, Print Found: True
2022-01-04 16:09:47,211  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:09:47,225 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:09:47,226  INFO ilens-edge_engine Count: 176, Print Found: True
2022-01-04 16:09:52,935  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:09:52,973 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:09:52,973  INFO ilens-edge_engine Count: 177, Print Found: True
2022-01-04 16:09:54,378  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:09:54,392 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:09:54,392  INFO ilens-edge_engine Count: 178, Print Found: True
2022-01-04 16:09:55,920  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:09:55,926 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:09:55,927  INFO ilens-edge_engine Count: 179, Print Found: True
2022-01-04 16:10:02,866  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:10:02,901 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:10:02,901  INFO ilens-edge_engine Count: 180, Print Found: True
2022-01-04 16:11:10,655  INFO ilens-edge_engine building publishers 
2022-01-04 16:11:10,779  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 16:11:12,154  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 16:11:12,829  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:11:12,839 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:11:12,840  INFO ilens-edge_engine Count: 1, Print Found: True
2022-01-04 16:11:14,268  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:11:14,277 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:11:14,277  INFO ilens-edge_engine Count: 2, Print Found: True
2022-01-04 16:11:17,978  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:11:18,097 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:11:18,097  INFO ilens-edge_engine Count: 3, Print Found: True
2022-01-04 16:11:54,998  INFO ilens-edge_engine building publishers 
2022-01-04 16:11:55,131  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 16:11:55,634  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:55,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-04 16:11:55,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:56,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-04 16:11:56,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,346 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,362 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,378 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,390 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,403 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,420 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,422 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,436 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,450 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,451 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,465 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,465 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,494 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,495 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,512 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,540 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,542 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:11:57,543 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,586 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,587 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,590 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,601 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,632 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,647 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,678 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,692 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,875 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,994 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:57,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-04 16:11:57,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,041 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,056 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,103 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,206 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,249 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,340 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,400 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,521 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,536 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,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-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:11:58,678 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 16:11:58,679 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:11:58,679 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 16:11:58,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:12:06,901  INFO ilens-edge_engine building publishers 
2022-01-04 16:12:07,006  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 16:12:09,912  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 16:12:12,108  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:12,123 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:12,124  INFO ilens-edge_engine Count: 1, Print Found: True
2022-01-04 16:12:15,928  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:15,935 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:15,935  INFO ilens-edge_engine Count: 2, Print Found: True
2022-01-04 16:12:17,028  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:17,036 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:17,036  INFO ilens-edge_engine Count: 3, Print Found: True
2022-01-04 16:12:22,683  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:22,839 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:22,839  INFO ilens-edge_engine Count: 4, Print Found: True
2022-01-04 16:12:23,701  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:23,710 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:23,710  INFO ilens-edge_engine Count: 5, Print Found: True
2022-01-04 16:12:25,339  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:25,346 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:25,346  INFO ilens-edge_engine Count: 6, Print Found: True
2022-01-04 16:12:26,142  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:26,157 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:26,158  INFO ilens-edge_engine Count: 7, Print Found: True
2022-01-04 16:12:27,781  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:27,823 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:27,823  INFO ilens-edge_engine Count: 8, Print Found: True
2022-01-04 16:12:28,893  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:28,926 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:28,926  INFO ilens-edge_engine Count: 9, Print Found: True
2022-01-04 16:12:30,645  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:30,666 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:30,667  INFO ilens-edge_engine Count: 10, Print Found: True
2022-01-04 16:12:32,339  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:32,344 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:32,344  INFO ilens-edge_engine Count: 11, Print Found: True
2022-01-04 16:12:34,019  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:34,039 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:34,040  INFO ilens-edge_engine Count: 12, Print Found: True
2022-01-04 16:12:35,550  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:35,628 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:35,628  INFO ilens-edge_engine Count: 13, Print Found: True
2022-01-04 16:12:37,166  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:37,174 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:37,174  INFO ilens-edge_engine Count: 14, Print Found: True
2022-01-04 16:12:38,227  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:38,236 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:38,236  INFO ilens-edge_engine Count: 15, Print Found: True
2022-01-04 16:12:43,842  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:44,025 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:44,025  INFO ilens-edge_engine Count: 16, Print Found: True
2022-01-04 16:12:44,970  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:44,994 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:44,994  INFO ilens-edge_engine Count: 17, Print Found: True
2022-01-04 16:12:46,636  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:46,644 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:46,644  INFO ilens-edge_engine Count: 18, Print Found: True
2022-01-04 16:12:48,341  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:48,349 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:48,349  INFO ilens-edge_engine Count: 19, Print Found: True
2022-01-04 16:12:49,961  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:49,968 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:49,968  INFO ilens-edge_engine Count: 20, Print Found: True
2022-01-04 16:12:50,691  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:50,712 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:50,712  INFO ilens-edge_engine Count: 21, Print Found: True
2022-01-04 16:12:52,280  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:52,288 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:52,288  INFO ilens-edge_engine Count: 22, Print Found: True
2022-01-04 16:12:53,494  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:53,502 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:53,503  INFO ilens-edge_engine Count: 23, Print Found: True
2022-01-04 16:12:55,206  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:55,233 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:55,233  INFO ilens-edge_engine Count: 24, Print Found: True
2022-01-04 16:12:56,570  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:56,575 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:56,575  INFO ilens-edge_engine Count: 25, Print Found: True
2022-01-04 16:12:58,213  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:58,220 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:58,220  INFO ilens-edge_engine Count: 26, Print Found: True
2022-01-04 16:12:58,964  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:12:58,988 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:12:58,988  INFO ilens-edge_engine Count: 27, Print Found: True
2022-01-04 16:13:04,593  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:04,608 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:04,608  INFO ilens-edge_engine Count: 28, Print Found: True
2022-01-04 16:13:05,777  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:05,783 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:05,783  INFO ilens-edge_engine Count: 29, Print Found: True
2022-01-04 16:13:07,534  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:07,538 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:07,538  INFO ilens-edge_engine Count: 30, Print Found: True
2022-01-04 16:13:08,300  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:08,308 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:08,308  INFO ilens-edge_engine Count: 31, Print Found: True
2022-01-04 16:13:09,924  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:09,931 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:09,932  INFO ilens-edge_engine Count: 32, Print Found: True
2022-01-04 16:13:10,692  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:10,699 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:10,699  INFO ilens-edge_engine Count: 33, Print Found: True
2022-01-04 16:13:12,304  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:12,360 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:12,360  INFO ilens-edge_engine Count: 34, Print Found: True
2022-01-04 16:13:13,988  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:14,001 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:14,001  INFO ilens-edge_engine Count: 35, Print Found: True
2022-01-04 16:13:15,707  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:15,713 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:15,713  INFO ilens-edge_engine Count: 36, Print Found: True
2022-01-04 16:13:16,477  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:16,482 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:16,482  INFO ilens-edge_engine Count: 37, Print Found: True
2022-01-04 16:13:18,188  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:18,196 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:18,197  INFO ilens-edge_engine Count: 38, Print Found: True
2022-01-04 16:13:18,858  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:18,870 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:18,871  INFO ilens-edge_engine Count: 39, Print Found: True
2022-01-04 16:13:24,432  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:24,438 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:24,438  INFO ilens-edge_engine Count: 40, Print Found: True
2022-01-04 16:13:25,187  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:25,194 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:25,194  INFO ilens-edge_engine Count: 41, Print Found: True
2022-01-04 16:13:26,798  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:26,804 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:26,804  INFO ilens-edge_engine Count: 42, Print Found: True
2022-01-04 16:13:28,193  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:28,215 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:28,216  INFO ilens-edge_engine Count: 43, Print Found: True
2022-01-04 16:13:29,687  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:29,695 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:29,696  INFO ilens-edge_engine Count: 44, Print Found: True
2022-01-04 16:13:30,457  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:30,480 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:30,481  INFO ilens-edge_engine Count: 45, Print Found: True
2022-01-04 16:13:32,087  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:32,101 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:32,102  INFO ilens-edge_engine Count: 46, Print Found: True
2022-01-04 16:13:32,852  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:32,868 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:32,868  INFO ilens-edge_engine Count: 47, Print Found: True
2022-01-04 16:13:34,386  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:34,405 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:34,405  INFO ilens-edge_engine Count: 48, Print Found: True
2022-01-04 16:13:35,052  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:35,072 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:35,072  INFO ilens-edge_engine Count: 49, Print Found: True
2022-01-04 16:13:36,783  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:36,832 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:36,832  INFO ilens-edge_engine Count: 50, Print Found: True
2022-01-04 16:13:37,460  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:37,466 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:37,466  INFO ilens-edge_engine Count: 51, Print Found: True
2022-01-04 16:13:43,061  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:43,066 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:43,067  INFO ilens-edge_engine Count: 52, Print Found: True
2022-01-04 16:13:43,666  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:43,671 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:43,672  INFO ilens-edge_engine Count: 53, Print Found: True
2022-01-04 16:13:45,275  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:45,298 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:45,298  INFO ilens-edge_engine Count: 54, Print Found: True
2022-01-04 16:13:46,048  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:46,058 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:46,058  INFO ilens-edge_engine Count: 55, Print Found: True
2022-01-04 16:13:47,536  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:47,556 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:47,557  INFO ilens-edge_engine Count: 56, Print Found: True
2022-01-04 16:13:48,320  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:48,326 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:48,326  INFO ilens-edge_engine Count: 57, Print Found: True
2022-01-04 16:13:49,937  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:49,944 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:49,944  INFO ilens-edge_engine Count: 58, Print Found: True
2022-01-04 16:13:51,509  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:51,517 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:51,518  INFO ilens-edge_engine Count: 59, Print Found: True
2022-01-04 16:13:53,143  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:53,200 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:53,200  INFO ilens-edge_engine Count: 60, Print Found: True
2022-01-04 16:13:53,816  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:53,941 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:53,941  INFO ilens-edge_engine Count: 61, Print Found: True
2022-01-04 16:13:55,627  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:55,681 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:55,681  INFO ilens-edge_engine Count: 62, Print Found: True
2022-01-04 16:13:56,185  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:13:56,203 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:13:56,203  INFO ilens-edge_engine Count: 63, Print Found: True
2022-01-04 16:14:01,787  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:01,847 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:01,848  INFO ilens-edge_engine Count: 64, Print Found: True
2022-01-04 16:14:02,445  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:02,454 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:02,454  INFO ilens-edge_engine Count: 65, Print Found: True
2022-01-04 16:14:04,046  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:04,054 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:04,054  INFO ilens-edge_engine Count: 66, Print Found: True
2022-01-04 16:14:05,660  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:05,692 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:05,693  INFO ilens-edge_engine Count: 67, Print Found: True
2022-01-04 16:14:07,300  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:07,331 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:07,331  INFO ilens-edge_engine Count: 68, Print Found: True
2022-01-04 16:14:08,084  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:08,090 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:08,090  INFO ilens-edge_engine Count: 69, Print Found: True
2022-01-04 16:14:09,758  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:09,788 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:09,788  INFO ilens-edge_engine Count: 70, Print Found: True
2022-01-04 16:14:10,396  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:10,434 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:10,434  INFO ilens-edge_engine Count: 71, Print Found: True
2022-01-04 16:14:11,901  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:11,942 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:11,942  INFO ilens-edge_engine Count: 72, Print Found: True
2022-01-04 16:14:12,669  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:12,685 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:12,685  INFO ilens-edge_engine Count: 73, Print Found: True
2022-01-04 16:14:14,277  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:14,291 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:14,291  INFO ilens-edge_engine Count: 74, Print Found: True
2022-01-04 16:14:14,896  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:14,902 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:14,903  INFO ilens-edge_engine Count: 75, Print Found: True
2022-01-04 16:14:20,397  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:20,411 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:20,411  INFO ilens-edge_engine Count: 76, Print Found: True
2022-01-04 16:14:21,257  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:21,262 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:21,262  INFO ilens-edge_engine Count: 77, Print Found: True
2022-01-04 16:14:22,776  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:22,796 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:22,796  INFO ilens-edge_engine Count: 78, Print Found: True
2022-01-04 16:14:23,661  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:23,666 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:23,666  INFO ilens-edge_engine Count: 79, Print Found: True
2022-01-04 16:14:25,172  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:25,179 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:25,180  INFO ilens-edge_engine Count: 80, Print Found: True
2022-01-04 16:14:26,173  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:26,178 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:26,179  INFO ilens-edge_engine Count: 81, Print Found: True
2022-01-04 16:14:27,901  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:27,913 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:27,913  INFO ilens-edge_engine Count: 82, Print Found: True
2022-01-04 16:14:29,558  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:29,564 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:29,564  INFO ilens-edge_engine Count: 83, Print Found: True
2022-01-04 16:14:31,186  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:31,234 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:31,235  INFO ilens-edge_engine Count: 84, Print Found: True
2022-01-04 16:14:32,115  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:32,126 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:32,126  INFO ilens-edge_engine Count: 85, Print Found: True
2022-01-04 16:14:33,759  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:33,770 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:33,770  INFO ilens-edge_engine Count: 86, Print Found: True
2022-01-04 16:14:34,674  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:34,691 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:34,692  INFO ilens-edge_engine Count: 87, Print Found: True
2022-01-04 16:14:40,230  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:40,245 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:40,246  INFO ilens-edge_engine Count: 88, Print Found: True
2022-01-04 16:14:41,178  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:41,184 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:41,184  INFO ilens-edge_engine Count: 89, Print Found: True
2022-01-04 16:14:42,750  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:42,769 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:42,769  INFO ilens-edge_engine Count: 90, Print Found: True
2022-01-04 16:14:44,522  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:44,538 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:44,539  INFO ilens-edge_engine Count: 91, Print Found: True
2022-01-04 16:14:46,146  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:46,152 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:46,152  INFO ilens-edge_engine Count: 92, Print Found: True
2022-01-04 16:14:46,772  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:46,817 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:46,817  INFO ilens-edge_engine Count: 93, Print Found: True
2022-01-04 16:14:48,483  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:48,491 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:48,491  INFO ilens-edge_engine Count: 94, Print Found: True
2022-01-04 16:14:49,476  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:49,510 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:49,510  INFO ilens-edge_engine Count: 95, Print Found: True
2022-01-04 16:14:51,114  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:51,153 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:51,153  INFO ilens-edge_engine Count: 96, Print Found: True
2022-01-04 16:14:51,915  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:51,923 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:51,923  INFO ilens-edge_engine Count: 97, Print Found: True
2022-01-04 16:14:53,622  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:53,633 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:53,634  INFO ilens-edge_engine Count: 98, Print Found: True
2022-01-04 16:14:54,624  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:14:54,638 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:14:54,638  INFO ilens-edge_engine Count: 99, Print Found: True
2022-01-04 16:15:00,234  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:00,272 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:00,272  INFO ilens-edge_engine Count: 100, Print Found: True
2022-01-04 16:15:01,306  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:01,312 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:01,313  INFO ilens-edge_engine Count: 101, Print Found: True
2022-01-04 16:15:03,001  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:03,035 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:03,035  INFO ilens-edge_engine Count: 102, Print Found: True
2022-01-04 16:15:03,687  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:03,696 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:03,696  INFO ilens-edge_engine Count: 103, Print Found: True
2022-01-04 16:15:05,504  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:05,519 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:05,519  INFO ilens-edge_engine Count: 104, Print Found: True
2022-01-04 16:15:07,350  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:07,358 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:07,359  INFO ilens-edge_engine Count: 105, Print Found: True
2022-01-04 16:15:08,912  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:08,922 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:08,922  INFO ilens-edge_engine Count: 106, Print Found: True
2022-01-04 16:15:10,558  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:10,569 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:10,569  INFO ilens-edge_engine Count: 107, Print Found: True
2022-01-04 16:15:12,332  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:12,370 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:12,371  INFO ilens-edge_engine Count: 108, Print Found: True
2022-01-04 16:15:13,279  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:13,292 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:13,292  INFO ilens-edge_engine Count: 109, Print Found: True
2022-01-04 16:15:14,959  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:14,972 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:14,972  INFO ilens-edge_engine Count: 110, Print Found: True
2022-01-04 16:15:15,629  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:15,682 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:15,684  INFO ilens-edge_engine Count: 111, Print Found: True
2022-01-04 16:15:21,388  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:21,398 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:21,398  INFO ilens-edge_engine Count: 112, Print Found: True
2022-01-04 16:15:22,546  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:22,551 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:22,551  INFO ilens-edge_engine Count: 113, Print Found: True
2022-01-04 16:15:24,205  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:24,279 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:24,279  INFO ilens-edge_engine Count: 114, Print Found: True
2022-01-04 16:15:25,869  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:25,875 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:25,876  INFO ilens-edge_engine Count: 115, Print Found: True
2022-01-04 16:15:27,536  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:27,638 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:27,638  INFO ilens-edge_engine Count: 116, Print Found: True
2022-01-04 16:15:28,957  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:28,971 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:28,973  INFO ilens-edge_engine Count: 117, Print Found: True
2022-01-04 16:15:30,649  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:30,718 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:30,719  INFO ilens-edge_engine Count: 118, Print Found: True
2022-01-04 16:15:31,375  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:31,407 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:31,408  INFO ilens-edge_engine Count: 119, Print Found: True
2022-01-04 16:15:33,278  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:33,346 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:33,347  INFO ilens-edge_engine Count: 120, Print Found: True
2022-01-04 16:15:34,134  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:34,176 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:34,176  INFO ilens-edge_engine Count: 121, Print Found: True
2022-01-04 16:15:35,680  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:35,697 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:35,697  INFO ilens-edge_engine Count: 122, Print Found: True
2022-01-04 16:15:36,427  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:36,437 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:36,437  INFO ilens-edge_engine Count: 123, Print Found: True
2022-01-04 16:15:42,040  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:42,049 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:42,049  INFO ilens-edge_engine Count: 124, Print Found: True
2022-01-04 16:15:43,244  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:43,292 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:43,292  INFO ilens-edge_engine Count: 125, Print Found: True
2022-01-04 16:15:44,922  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:44,927 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:44,927  INFO ilens-edge_engine Count: 126, Print Found: True
2022-01-04 16:15:45,658  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:45,663 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:45,663  INFO ilens-edge_engine Count: 127, Print Found: True
2022-01-04 16:15:47,260  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:47,273 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:47,273  INFO ilens-edge_engine Count: 128, Print Found: True
2022-01-04 16:15:48,355  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:48,360 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:48,361  INFO ilens-edge_engine Count: 129, Print Found: True
2022-01-04 16:15:50,009  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:50,038 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:50,038  INFO ilens-edge_engine Count: 130, Print Found: True
2022-01-04 16:15:51,770  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:51,780 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:51,781  INFO ilens-edge_engine Count: 131, Print Found: True
2022-01-04 16:15:53,328  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:53,338 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:53,338  INFO ilens-edge_engine Count: 132, Print Found: True
2022-01-04 16:15:54,044  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:54,052 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:54,052  INFO ilens-edge_engine Count: 133, Print Found: True
2022-01-04 16:15:55,784  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:55,789 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:55,789  INFO ilens-edge_engine Count: 134, Print Found: True
2022-01-04 16:15:56,400  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:15:56,413 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:15:56,414  INFO ilens-edge_engine Count: 135, Print Found: True
2022-01-04 16:16:01,963  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:01,970 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:01,970  INFO ilens-edge_engine Count: 136, Print Found: True
2022-01-04 16:16:02,706  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:02,737 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:02,737  INFO ilens-edge_engine Count: 137, Print Found: True
2022-01-04 16:16:04,323  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:04,329 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:04,329  INFO ilens-edge_engine Count: 138, Print Found: True
2022-01-04 16:16:05,939  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:05,946 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:05,946  INFO ilens-edge_engine Count: 139, Print Found: True
2022-01-04 16:16:07,650  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:07,665 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:07,666  INFO ilens-edge_engine Count: 140, Print Found: True
2022-01-04 16:16:08,324  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:08,466 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:08,466  INFO ilens-edge_engine Count: 141, Print Found: True
2022-01-04 16:16:09,929  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:09,935 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:09,935  INFO ilens-edge_engine Count: 142, Print Found: True
2022-01-04 16:16:10,590  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:10,621 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:10,622  INFO ilens-edge_engine Count: 143, Print Found: True
2022-01-04 16:16:12,111  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:12,478 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:12,478  INFO ilens-edge_engine Count: 144, Print Found: True
2022-01-04 16:16:12,886  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:12,893 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:12,894  INFO ilens-edge_engine Count: 145, Print Found: True
2022-01-04 16:16:14,379  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:14,390 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:14,391  INFO ilens-edge_engine Count: 146, Print Found: True
2022-01-04 16:16:15,008  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:15,037 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:15,037  INFO ilens-edge_engine Count: 147, Print Found: True
2022-01-04 16:16:20,623  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:20,647 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:20,647  INFO ilens-edge_engine Count: 148, Print Found: True
2022-01-04 16:16:21,388  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:21,395 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:21,395  INFO ilens-edge_engine Count: 149, Print Found: True
2022-01-04 16:16:22,966  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:22,971 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:22,971  INFO ilens-edge_engine Count: 150, Print Found: True
2022-01-04 16:16:23,594  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:23,603 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:23,603  INFO ilens-edge_engine Count: 151, Print Found: True
2022-01-04 16:16:25,307  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:25,312 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:25,312  INFO ilens-edge_engine Count: 152, Print Found: True
2022-01-04 16:16:26,061  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:26,094 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:26,094  INFO ilens-edge_engine Count: 153, Print Found: True
2022-01-04 16:16:27,684  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:27,777 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:27,778  INFO ilens-edge_engine Count: 154, Print Found: True
2022-01-04 16:16:29,259  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:29,292 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:29,292  INFO ilens-edge_engine Count: 155, Print Found: True
2022-01-04 16:16:30,937  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:30,948 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:30,948  INFO ilens-edge_engine Count: 156, Print Found: True
2022-01-04 16:16:31,720  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:31,729 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:31,729  INFO ilens-edge_engine Count: 157, Print Found: True
2022-01-04 16:16:33,426  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:33,455 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:33,456  INFO ilens-edge_engine Count: 158, Print Found: True
2022-01-04 16:16:34,124  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:34,131 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:34,131  INFO ilens-edge_engine Count: 159, Print Found: True
2022-01-04 16:16:39,680  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:39,726 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:39,727  INFO ilens-edge_engine Count: 160, Print Found: True
2022-01-04 16:16:40,377  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:40,385 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:40,385  INFO ilens-edge_engine Count: 161, Print Found: True
2022-01-04 16:16:41,866  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:41,872 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:41,872  INFO ilens-edge_engine Count: 162, Print Found: True
2022-01-04 16:16:43,585  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:43,592 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:43,592  INFO ilens-edge_engine Count: 163, Print Found: True
2022-01-04 16:16:45,214  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:45,240 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:45,241  INFO ilens-edge_engine Count: 164, Print Found: True
2022-01-04 16:16:46,148  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:46,155 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:46,155  INFO ilens-edge_engine Count: 165, Print Found: True
2022-01-04 16:16:47,764  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:47,790 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:47,790  INFO ilens-edge_engine Count: 166, Print Found: True
2022-01-04 16:16:48,572  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:48,953 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:48,953  INFO ilens-edge_engine Count: 167, Print Found: True
2022-01-04 16:16:50,208  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:50,213 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:50,213  INFO ilens-edge_engine Count: 168, Print Found: True
2022-01-04 16:16:50,799  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:50,810 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:50,810  INFO ilens-edge_engine Count: 169, Print Found: True
2022-01-04 16:16:52,454  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:52,459 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:52,460  INFO ilens-edge_engine Count: 170, Print Found: True
2022-01-04 16:16:53,258  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:53,267 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:53,267  INFO ilens-edge_engine Count: 171, Print Found: True
2022-01-04 16:16:58,783  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:16:58,791 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:16:58,791  INFO ilens-edge_engine Count: 172, Print Found: True
2022-01-04 16:17:00,094  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:00,099 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:00,100  INFO ilens-edge_engine Count: 173, Print Found: True
2022-01-04 16:17:03,656  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:03,670 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:03,670  INFO ilens-edge_engine Count: 174, Print Found: True
2022-01-04 16:17:07,743  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:07,775 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:07,775  INFO ilens-edge_engine Count: 175, Print Found: True
2022-01-04 16:17:10,089  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:10,151 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:10,152  INFO ilens-edge_engine Count: 176, Print Found: True
2022-01-04 16:17:12,214  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:12,222 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:12,222  INFO ilens-edge_engine Count: 177, Print Found: True
2022-01-04 16:17:14,223  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:14,243 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:14,243  INFO ilens-edge_engine Count: 178, Print Found: True
2022-01-04 16:17:15,883  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:15,891 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:15,892  INFO ilens-edge_engine Count: 179, Print Found: True
2022-01-04 16:17:18,435  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:18,442 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:18,442  INFO ilens-edge_engine Count: 180, Print Found: True
2022-01-04 16:17:21,811  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:22,031 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:22,031  INFO ilens-edge_engine Count: 181, Print Found: True
2022-01-04 16:17:23,949  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:23,955 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:23,955  INFO ilens-edge_engine Count: 182, Print Found: True
2022-01-04 16:17:29,565  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:29,574 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:29,574  INFO ilens-edge_engine Count: 183, Print Found: True
2022-01-04 16:17:30,747  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:30,867 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:30,868  INFO ilens-edge_engine Count: 184, Print Found: True
2022-01-04 16:17:32,427  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:32,764 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:32,765  INFO ilens-edge_engine Count: 185, Print Found: True
2022-01-04 16:17:34,061  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:34,097 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:34,097  INFO ilens-edge_engine Count: 186, Print Found: True
2022-01-04 16:17:36,113  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:36,134 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:36,134  INFO ilens-edge_engine Count: 187, Print Found: True
2022-01-04 16:17:38,040  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:38,072 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:38,073  INFO ilens-edge_engine Count: 188, Print Found: True
2022-01-04 16:17:40,025  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:40,033 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:40,033  INFO ilens-edge_engine Count: 189, Print Found: True
2022-01-04 16:17:41,667  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:41,680 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:41,680  INFO ilens-edge_engine Count: 190, Print Found: True
2022-01-04 16:17:44,320  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:44,336 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:44,337  INFO ilens-edge_engine Count: 191, Print Found: True
2022-01-04 16:17:45,965  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:45,971 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:45,972  INFO ilens-edge_engine Count: 192, Print Found: True
2022-01-04 16:17:48,619  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:48,633 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:48,633  INFO ilens-edge_engine Count: 193, Print Found: True
2022-01-04 16:17:54,274  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:54,295 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:54,295  INFO ilens-edge_engine Count: 194, Print Found: True
2022-01-04 16:17:55,307  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:55,315 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:55,315  INFO ilens-edge_engine Count: 195, Print Found: True
2022-01-04 16:17:57,008  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:17:57,017 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:17:57,018  INFO ilens-edge_engine Count: 196, Print Found: True
2022-01-04 16:17:59,978  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:00,829 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:00,829  INFO ilens-edge_engine Count: 197, Print Found: True
2022-01-04 16:18:04,716  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:04,797 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:04,797  INFO ilens-edge_engine Count: 198, Print Found: True
2022-01-04 16:18:06,380  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:06,436 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:06,436  INFO ilens-edge_engine Count: 199, Print Found: True
2022-01-04 16:18:08,004  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:08,014 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:08,014  INFO ilens-edge_engine Count: 200, Print Found: True
2022-01-04 16:18:19,343  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:19,351 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:19,352  INFO ilens-edge_engine Count: 201, Print Found: True
2022-01-04 16:18:20,215  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:20,292 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:20,292  INFO ilens-edge_engine Count: 202, Print Found: True
2022-01-04 16:18:21,869  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:21,905 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:21,905  INFO ilens-edge_engine Count: 203, Print Found: True
2022-01-04 16:18:23,680  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:23,701 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:23,701  INFO ilens-edge_engine Count: 204, Print Found: True
2022-01-04 16:18:25,381  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:25,391 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:25,392  INFO ilens-edge_engine Count: 205, Print Found: True
2022-01-04 16:18:26,743  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:26,758 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:26,758  INFO ilens-edge_engine Count: 206, Print Found: True
2022-01-04 16:18:28,509  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:28,528 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:28,528  INFO ilens-edge_engine Count: 207, Print Found: True
2022-01-04 16:18:29,394  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:29,415 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:29,416  INFO ilens-edge_engine Count: 208, Print Found: True
2022-01-04 16:18:31,102  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:31,116 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:31,116  INFO ilens-edge_engine Count: 209, Print Found: True
2022-01-04 16:18:32,538  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:32,557 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:32,557  INFO ilens-edge_engine Count: 210, Print Found: True
2022-01-04 16:18:34,265  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:34,299 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:34,299  INFO ilens-edge_engine Count: 211, Print Found: True
2022-01-04 16:18:35,319  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:35,338 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:35,338  INFO ilens-edge_engine Count: 212, Print Found: True
2022-01-04 16:18:40,850  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:41,102 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:41,103  INFO ilens-edge_engine Count: 213, Print Found: True
2022-01-04 16:18:41,967  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:42,738 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:42,739  INFO ilens-edge_engine Count: 214, Print Found: True
2022-01-04 16:18:44,391  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:44,438 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:44,439  INFO ilens-edge_engine Count: 215, Print Found: True
2022-01-04 16:18:45,996  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:46,335 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:46,336  INFO ilens-edge_engine Count: 216, Print Found: True
2022-01-04 16:18:47,499  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:47,573 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:47,574  INFO ilens-edge_engine Count: 217, Print Found: True
2022-01-04 16:18:49,147  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:49,157 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:49,157  INFO ilens-edge_engine Count: 218, Print Found: True
2022-01-04 16:18:50,770  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:50,794 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:50,794  INFO ilens-edge_engine Count: 219, Print Found: True
2022-01-04 16:18:52,521  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:52,542 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:52,543  INFO ilens-edge_engine Count: 220, Print Found: True
2022-01-04 16:18:53,272  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:53,281 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:53,282  INFO ilens-edge_engine Count: 221, Print Found: True
2022-01-04 16:18:54,964  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:54,991 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:54,992  INFO ilens-edge_engine Count: 222, Print Found: True
2022-01-04 16:18:55,613  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:18:55,621 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:18:55,621  INFO ilens-edge_engine Count: 223, Print Found: True
2022-01-04 16:19:01,095  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:01,129 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:01,130  INFO ilens-edge_engine Count: 224, Print Found: True
2022-01-04 16:19:01,879  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:01,896 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:01,896  INFO ilens-edge_engine Count: 225, Print Found: True
2022-01-04 16:19:03,302  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:03,318 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:03,318  INFO ilens-edge_engine Count: 226, Print Found: True
2022-01-04 16:19:04,978  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:05,422 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:05,422  INFO ilens-edge_engine Count: 227, Print Found: True
2022-01-04 16:19:06,624  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:06,660 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:06,660  INFO ilens-edge_engine Count: 228, Print Found: True
2022-01-04 16:19:07,398  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:07,431 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:07,431  INFO ilens-edge_engine Count: 229, Print Found: True
2022-01-04 16:19:08,865  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:09,267 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:09,267  INFO ilens-edge_engine Count: 230, Print Found: True
2022-01-04 16:19:09,534  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:09,545 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:09,545  INFO ilens-edge_engine Count: 231, Print Found: True
2022-01-04 16:19:11,162  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:11,171 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:11,171  INFO ilens-edge_engine Count: 232, Print Found: True
2022-01-04 16:19:11,906  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:11,912 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:11,913  INFO ilens-edge_engine Count: 233, Print Found: True
2022-01-04 16:19:13,577  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:13,584 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:13,584  INFO ilens-edge_engine Count: 234, Print Found: True
2022-01-04 16:19:14,070  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:14,081 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:14,082  INFO ilens-edge_engine Count: 235, Print Found: True
2022-01-04 16:19:19,663  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:19,674 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:19,674  INFO ilens-edge_engine Count: 236, Print Found: True
2022-01-04 16:19:20,412  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:20,425 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:20,425  INFO ilens-edge_engine Count: 237, Print Found: True
2022-01-04 16:19:21,996  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:22,029 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:22,029  INFO ilens-edge_engine Count: 238, Print Found: True
2022-01-04 16:19:22,638  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:22,674 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:22,674  INFO ilens-edge_engine Count: 239, Print Found: True
2022-01-04 16:19:24,257  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:24,277 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:24,278  INFO ilens-edge_engine Count: 240, Print Found: True
2022-01-04 16:19:25,032  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:25,128 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:25,129  INFO ilens-edge_engine Count: 241, Print Found: True
2022-01-04 16:19:26,645  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:26,744 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:26,744  INFO ilens-edge_engine Count: 242, Print Found: True
2022-01-04 16:19:38,506  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:38,833 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:38,833  INFO ilens-edge_engine Count: 243, Print Found: True
2022-01-04 16:19:39,195  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:39,233 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:39,233  INFO ilens-edge_engine Count: 244, Print Found: True
2022-01-04 16:19:40,771  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:19:41,318 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:19:41,318  INFO ilens-edge_engine Count: 245, Print Found: True
2022-01-04 16:20:19,406 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 16:20:19,407 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,817 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:19,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-04 16:20:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,256 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,390 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,692 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:20,994 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:20,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,039 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,041 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,340 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,400 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,403 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,508 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,626 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,705 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20:21,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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:20: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-04 16:20:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:20:23,390  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:20:23,400 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:20:23,401  INFO ilens-edge_engine Count: 246, Print Found: True
2022-01-04 16:20:25,043  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:20:25,110 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:20:25,110  INFO ilens-edge_engine Count: 247, Print Found: True
2022-01-04 16:20:25,809  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:20:25,839 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:20:25,840  INFO ilens-edge_engine Count: 248, Print Found: True
2022-01-04 16:20:29,139  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:20:29,154 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:20:29,154  INFO ilens-edge_engine Count: 249, Print Found: True
2022-01-04 16:20:30,855  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:20:30,867 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:20:30,867  INFO ilens-edge_engine Count: 250, Print Found: True
2022-01-04 16:20:36,268  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:20:36,272 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:20:36,273  INFO ilens-edge_engine Count: 251, Print Found: True
2022-01-04 16:20:37,531  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:20:37,537 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:20:37,537  INFO ilens-edge_engine Count: 252, Print Found: True
2022-01-04 16:20:39,190  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:20:39,250 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:20:39,251  INFO ilens-edge_engine Count: 253, Print Found: True
2022-01-04 16:20:39,848  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:20:39,853 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:20:39,854  INFO ilens-edge_engine Count: 254, Print Found: True
2022-01-04 16:20:41,561  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:20:41,579 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:20:41,580  INFO ilens-edge_engine Count: 255, Print Found: True
2022-01-04 16:20:42,783  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:20:42,813 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:20:42,813  INFO ilens-edge_engine Count: 256, Print Found: True
2022-01-04 16:20:44,505  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:20:44,512 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:20:44,513  INFO ilens-edge_engine Count: 257, Print Found: True
2022-01-04 16:20:46,137  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:20:46,145 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:20:46,145  INFO ilens-edge_engine Count: 258, Print Found: True
2022-01-04 16:20:47,831  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:20:47,841 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:20:47,841  INFO ilens-edge_engine Count: 259, Print Found: True
2022-01-04 16:20:51,341  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:20:51,354 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:20:51,354  INFO ilens-edge_engine Count: 260, Print Found: True
2022-01-04 16:20:57,953  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:20:57,962 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:20:57,962  INFO ilens-edge_engine Count: 261, Print Found: True
2022-01-04 16:20:59,224  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:20:59,308 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:20:59,308  INFO ilens-edge_engine Count: 262, Print Found: True
2022-01-04 16:21:01,111  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:21:01,142 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:21:01,144  INFO ilens-edge_engine Count: 263, Print Found: True
2022-01-04 16:21:02,681  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:21:02,687 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:21:02,687  INFO ilens-edge_engine Count: 264, Print Found: True
2022-01-04 16:21:03,639  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:21:03,668 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:21:03,668  INFO ilens-edge_engine Count: 265, Print Found: True
2022-01-04 16:21:05,226  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:21:05,255 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:21:05,256  INFO ilens-edge_engine Count: 266, Print Found: True
2022-01-04 16:21:05,935  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:21:05,952 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:21:05,952  INFO ilens-edge_engine Count: 267, Print Found: True
2022-01-04 16:21:07,593  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:21:07,633 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:21:07,633  INFO ilens-edge_engine Count: 268, Print Found: True
2022-01-04 16:21:08,922  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:21:08,930 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:21:08,930  INFO ilens-edge_engine Count: 269, Print Found: True
2022-01-04 16:21:10,664  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:21:10,669 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:21:10,670  INFO ilens-edge_engine Count: 270, Print Found: True
2022-01-04 16:21:11,250  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:21:11,275 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:21:11,275  INFO ilens-edge_engine Count: 271, Print Found: True
2022-01-04 16:21:16,928  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:21:16,935 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:21:16,936  INFO ilens-edge_engine Count: 272, Print Found: True
2022-01-04 16:21:18,094  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:21:18,106 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:21:18,107  INFO ilens-edge_engine Count: 273, Print Found: True
2022-01-04 16:21:19,819  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:21:19,971 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:21:19,971  INFO ilens-edge_engine Count: 274, Print Found: True
2022-01-04 16:21:20,644  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:21:20,653 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:21:20,653  INFO ilens-edge_engine Count: 275, Print Found: True
2022-01-04 16:21:22,230  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:21:22,243 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:21:22,243  INFO ilens-edge_engine Count: 276, Print Found: True
2022-01-04 16:21:41,884  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:21:42,458 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:21:42,459  INFO ilens-edge_engine Count: 277, Print Found: True
2022-01-04 16:22:12,559 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 16:22:12,560 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:12,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-04 16:22:12,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,349 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,692 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,709 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,799 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:13,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:13,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,056 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,340 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,390 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,400 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,508 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,626 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,688 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,705 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,946 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,961 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:14,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-04 16:22:14,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,125 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,232 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:15,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-04 16:22:15,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,320 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,349 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,604 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,799 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:16,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:16,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,313 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,403 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,508 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,705 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:17,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-04 16:22:17,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,127 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,249 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:18,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-04 16:22:18,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,799 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:19,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-04 16:22:19,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,056 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,206 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,403 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,630 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,705 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,946 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:20,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-04 16:22:20,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,155 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,232 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,320 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,349 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,787 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,788 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,799 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,994 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:21,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-04 16:22:21,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,056 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,103 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,252 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,254 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,313 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,403 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,451 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22: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-04 16:22: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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 16:22:22,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-04 16:22:22,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 483, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 454, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 528, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 16:22:25,146  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:22:25,425 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:22:25,425  INFO ilens-edge_engine Count: 278, Print Found: True
2022-01-04 16:22:26,956  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:22:27,208 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:22:27,208  INFO ilens-edge_engine Count: 279, Print Found: True
2022-01-04 16:22:32,841  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:22:33,323 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:22:33,324  INFO ilens-edge_engine Count: 280, Print Found: True
2022-01-04 16:22:33,830  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:22:34,376 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:22:34,376  INFO ilens-edge_engine Count: 281, Print Found: True
2022-01-04 16:22:35,525  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:22:35,788 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:22:35,789  INFO ilens-edge_engine Count: 282, Print Found: True
2022-01-04 16:22:37,910  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:22:38,311 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:22:38,312  INFO ilens-edge_engine Count: 283, Print Found: True
2022-01-04 16:22:38,814  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:22:39,478 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:22:39,478  INFO ilens-edge_engine Count: 284, Print Found: True
2022-01-04 16:22:40,638  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:22:41,165 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:22:41,165  INFO ilens-edge_engine Count: 285, Print Found: True
2022-01-04 16:22:42,313  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:22:42,360 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:22:42,360  INFO ilens-edge_engine Count: 286, Print Found: True
2022-01-04 16:22:44,557  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:22:44,680 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:22:44,680  INFO ilens-edge_engine Count: 287, Print Found: True
2022-01-04 16:22:52,763  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:22:53,060 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:22:53,061  INFO ilens-edge_engine Count: 288, Print Found: True
2022-01-04 16:22:53,444  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:22:53,629 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:22:53,629  INFO ilens-edge_engine Count: 289, Print Found: True
2022-01-04 16:22:55,438  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:22:55,597 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:22:55,598  INFO ilens-edge_engine Count: 290, Print Found: True
2022-01-04 16:22:57,506  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:22:57,612 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:22:57,612  INFO ilens-edge_engine Count: 291, Print Found: True
2022-01-04 16:22:59,870  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:00,439 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:00,439  INFO ilens-edge_engine Count: 292, Print Found: True
2022-01-04 16:23:02,581  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:02,925 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:02,925  INFO ilens-edge_engine Count: 293, Print Found: True
2022-01-04 16:23:04,324  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:04,754 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:04,754  INFO ilens-edge_engine Count: 294, Print Found: True
2022-01-04 16:23:06,785  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:07,134 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:07,134  INFO ilens-edge_engine Count: 295, Print Found: True
2022-01-04 16:23:13,049  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:13,250 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:13,250  INFO ilens-edge_engine Count: 296, Print Found: True
2022-01-04 16:23:13,929  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:14,022 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:14,022  INFO ilens-edge_engine Count: 297, Print Found: True
2022-01-04 16:23:15,466  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:15,955 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:15,955  INFO ilens-edge_engine Count: 298, Print Found: True
2022-01-04 16:23:16,833  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:16,993 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:16,993  INFO ilens-edge_engine Count: 299, Print Found: True
2022-01-04 16:23:21,028  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:21,298 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:21,298  INFO ilens-edge_engine Count: 300, Print Found: True
2022-01-04 16:23:22,971  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:23,510 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:23,511  INFO ilens-edge_engine Count: 301, Print Found: True
2022-01-04 16:23:27,184  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:27,530 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:27,531  INFO ilens-edge_engine Count: 302, Print Found: True
2022-01-04 16:23:29,093  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:29,189 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:29,189  INFO ilens-edge_engine Count: 303, Print Found: True
2022-01-04 16:23:29,977  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:30,539 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:30,539  INFO ilens-edge_engine Count: 304, Print Found: True
2022-01-04 16:23:35,531  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:35,922 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:35,922  INFO ilens-edge_engine Count: 305, Print Found: True
2022-01-04 16:23:36,829  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:36,856 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:36,856  INFO ilens-edge_engine Count: 306, Print Found: True
2022-01-04 16:23:38,328  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:38,692 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:38,693  INFO ilens-edge_engine Count: 307, Print Found: True
2022-01-04 16:23:39,883  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:40,076 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:40,076  INFO ilens-edge_engine Count: 308, Print Found: True
2022-01-04 16:23:41,581  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:41,721 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:41,721  INFO ilens-edge_engine Count: 309, Print Found: True
2022-01-04 16:23:42,255  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:42,602 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:42,602  INFO ilens-edge_engine Count: 310, Print Found: True
2022-01-04 16:23:43,837  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:44,000 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:44,000  INFO ilens-edge_engine Count: 311, Print Found: True
2022-01-04 16:23:47,129  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:47,269 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:47,269  INFO ilens-edge_engine Count: 312, Print Found: True
2022-01-04 16:23:49,127  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:49,439 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:49,439  INFO ilens-edge_engine Count: 313, Print Found: True
2022-01-04 16:23:50,482  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:50,996 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:50,997  INFO ilens-edge_engine Count: 314, Print Found: True
2022-01-04 16:23:51,379  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:23:53,338 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:23:53,338  INFO ilens-edge_engine Count: 315, Print Found: True
2022-01-04 16:24:15,091  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:15,414 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:15,414  INFO ilens-edge_engine Count: 316, Print Found: True
2022-01-04 16:24:16,522  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:16,882 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:16,883  INFO ilens-edge_engine Count: 317, Print Found: True
2022-01-04 16:24:18,180  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:18,315 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:18,315  INFO ilens-edge_engine Count: 318, Print Found: True
2022-01-04 16:24:23,073  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:23,414 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:23,414  INFO ilens-edge_engine Count: 319, Print Found: True
2022-01-04 16:24:25,065  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:27,513 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:27,514  INFO ilens-edge_engine Count: 320, Print Found: True
2022-01-04 16:24:28,271  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:28,755 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:28,755  INFO ilens-edge_engine Count: 321, Print Found: True
2022-01-04 16:24:30,010  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:31,089 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:31,089  INFO ilens-edge_engine Count: 322, Print Found: True
2022-01-04 16:24:32,246  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:32,902 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:32,902  INFO ilens-edge_engine Count: 323, Print Found: True
2022-01-04 16:24:38,432  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:38,467 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:38,467  INFO ilens-edge_engine Count: 324, Print Found: True
2022-01-04 16:24:39,121  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:39,845 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:39,845  INFO ilens-edge_engine Count: 325, Print Found: True
2022-01-04 16:24:40,732  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:43,816 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:43,817  INFO ilens-edge_engine Count: 326, Print Found: True
2022-01-04 16:24:44,210  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:44,234 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:44,234  INFO ilens-edge_engine Count: 327, Print Found: True
2022-01-04 16:24:46,485  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:46,751 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:46,751  INFO ilens-edge_engine Count: 328, Print Found: True
2022-01-04 16:24:48,691  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:49,116 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:49,116  INFO ilens-edge_engine Count: 329, Print Found: True
2022-01-04 16:24:51,117  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:51,567 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:51,567  INFO ilens-edge_engine Count: 330, Print Found: True
2022-01-04 16:24:57,378  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:57,445 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:57,446  INFO ilens-edge_engine Count: 331, Print Found: True
2022-01-04 16:24:58,013  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:58,375 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:58,376  INFO ilens-edge_engine Count: 332, Print Found: True
2022-01-04 16:24:59,523  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:24:59,695 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:24:59,695  INFO ilens-edge_engine Count: 333, Print Found: True
2022-01-04 16:25:00,247  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:00,464 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:00,465  INFO ilens-edge_engine Count: 334, Print Found: True
2022-01-04 16:25:02,018  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:02,300 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:02,301  INFO ilens-edge_engine Count: 335, Print Found: True
2022-01-04 16:25:02,799  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:03,048 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:03,048  INFO ilens-edge_engine Count: 336, Print Found: True
2022-01-04 16:25:04,253  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:04,578 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:04,578  INFO ilens-edge_engine Count: 337, Print Found: True
2022-01-04 16:25:06,083  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:06,410 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:06,410  INFO ilens-edge_engine Count: 338, Print Found: True
2022-01-04 16:25:07,749  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:08,291 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:08,292  INFO ilens-edge_engine Count: 339, Print Found: True
2022-01-04 16:25:10,106  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:10,402 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:10,403  INFO ilens-edge_engine Count: 340, Print Found: True
2022-01-04 16:25:16,304  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:16,321 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:16,321  INFO ilens-edge_engine Count: 341, Print Found: True
2022-01-04 16:25:17,093  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:17,119 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:17,119  INFO ilens-edge_engine Count: 342, Print Found: True
2022-01-04 16:25:18,663  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:18,684 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:18,684  INFO ilens-edge_engine Count: 343, Print Found: True
2022-01-04 16:25:20,359  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:20,364 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:20,364  INFO ilens-edge_engine Count: 344, Print Found: True
2022-01-04 16:25:21,985  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:21,993 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:21,994  INFO ilens-edge_engine Count: 345, Print Found: True
2022-01-04 16:25:22,619  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:22,632 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:22,632  INFO ilens-edge_engine Count: 346, Print Found: True
2022-01-04 16:25:24,387  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:24,415 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:24,415  INFO ilens-edge_engine Count: 347, Print Found: True
2022-01-04 16:25:25,021  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:25,029 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:25,029  INFO ilens-edge_engine Count: 348, Print Found: True
2022-01-04 16:25:26,754  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:26,777 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:26,777  INFO ilens-edge_engine Count: 349, Print Found: True
2022-01-04 16:25:27,408  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:27,424 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:27,425  INFO ilens-edge_engine Count: 350, Print Found: True
2022-01-04 16:25:29,116  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:29,149 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:29,149  INFO ilens-edge_engine Count: 351, Print Found: True
2022-01-04 16:25:29,892  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:29,897 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:29,898  INFO ilens-edge_engine Count: 352, Print Found: True
2022-01-04 16:25:35,401  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:35,411 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:35,411  INFO ilens-edge_engine Count: 353, Print Found: True
2022-01-04 16:25:36,156  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:36,162 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:36,162  INFO ilens-edge_engine Count: 354, Print Found: True
2022-01-04 16:25:37,765  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:37,770 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:37,770  INFO ilens-edge_engine Count: 355, Print Found: True
2022-01-04 16:25:38,523  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:38,555 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:38,555  INFO ilens-edge_engine Count: 356, Print Found: True
2022-01-04 16:25:40,183  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:40,197 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:40,197  INFO ilens-edge_engine Count: 357, Print Found: True
2022-01-04 16:25:40,839  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:40,850 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:40,850  INFO ilens-edge_engine Count: 358, Print Found: True
2022-01-04 16:25:42,500  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:42,508 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:42,508  INFO ilens-edge_engine Count: 359, Print Found: True
2022-01-04 16:25:44,142  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:44,147 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:44,148  INFO ilens-edge_engine Count: 360, Print Found: True
2022-01-04 16:25:45,777  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:45,950 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:45,950  INFO ilens-edge_engine Count: 361, Print Found: True
2022-01-04 16:25:46,597  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:46,601 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:46,602  INFO ilens-edge_engine Count: 362, Print Found: True
2022-01-04 16:25:48,121  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:48,492 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:48,493  INFO ilens-edge_engine Count: 363, Print Found: True
2022-01-04 16:25:48,727  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:49,212 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:49,212  INFO ilens-edge_engine Count: 364, Print Found: True
2022-01-04 16:25:54,432  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:54,438 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:54,438  INFO ilens-edge_engine Count: 365, Print Found: True
2022-01-04 16:25:55,220  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:25:55,260 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:25:55,260  INFO ilens-edge_engine Count: 366, Print Found: True
2022-01-04 16:26:07,702  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:26:13,827 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:26:13,828  INFO ilens-edge_engine Count: 367, Print Found: True
2022-01-04 16:26:20,171  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:26:20,180 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:26:20,181  INFO ilens-edge_engine Count: 368, Print Found: True
2022-01-04 16:26:29,382  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:26:29,412 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:26:29,412  INFO ilens-edge_engine Count: 369, Print Found: True
2022-01-04 16:26:59,372  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:26:59,385 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:26:59,386  INFO ilens-edge_engine Count: 370, Print Found: True
2022-01-04 16:27:02,769  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:27:02,785 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:27:02,785  INFO ilens-edge_engine Count: 371, Print Found: True
2022-01-04 16:27:04,350  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:27:04,368 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:27:04,368  INFO ilens-edge_engine Count: 372, Print Found: True
2022-01-04 16:27:05,891  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:27:05,911 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:27:05,911  INFO ilens-edge_engine Count: 373, Print Found: True
2022-01-04 16:27:12,198  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:27:12,448 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:27:12,448  INFO ilens-edge_engine Count: 374, Print Found: True
2022-01-04 16:27:16,059  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:27:16,071 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:27:16,071  INFO ilens-edge_engine Count: 375, Print Found: True
2022-01-04 16:27:17,004  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:27:17,009 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:27:17,010  INFO ilens-edge_engine Count: 376, Print Found: True
2022-01-04 16:28:50,206  INFO ilens-edge_engine building publishers 
2022-01-04 16:28:50,573  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 16:28:53,031  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 16:30:20,948  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:20,988 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:20,989  INFO ilens-edge_engine Count: 1, Print Found: True
2022-01-04 16:30:22,592  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:22,641 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:22,641  INFO ilens-edge_engine Count: 2, Print Found: True
2022-01-04 16:30:23,513  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:23,546 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:23,547  INFO ilens-edge_engine Count: 3, Print Found: True
2022-01-04 16:30:25,162  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:25,249 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:25,249  INFO ilens-edge_engine Count: 4, Print Found: True
2022-01-04 16:30:26,112  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:26,221 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:26,221  INFO ilens-edge_engine Count: 5, Print Found: True
2022-01-04 16:30:28,674  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:28,686 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:28,686  INFO ilens-edge_engine Count: 6, Print Found: True
2022-01-04 16:30:34,558  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:34,566 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:34,567  INFO ilens-edge_engine Count: 7, Print Found: True
2022-01-04 16:30:36,189  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:36,195 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:36,196  INFO ilens-edge_engine Count: 8, Print Found: True
2022-01-04 16:30:39,887  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:39,902 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:39,903  INFO ilens-edge_engine Count: 9, Print Found: True
2022-01-04 16:30:45,570  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:45,579 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:45,579  INFO ilens-edge_engine Count: 10, Print Found: True
2022-01-04 16:30:46,496  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:46,503 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:46,504  INFO ilens-edge_engine Count: 11, Print Found: True
2022-01-04 16:30:48,144  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:48,152 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:48,152  INFO ilens-edge_engine Count: 12, Print Found: True
2022-01-04 16:30:49,919  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:50,364 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:50,364  INFO ilens-edge_engine Count: 13, Print Found: True
2022-01-04 16:30:51,557  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:51,583 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:51,583  INFO ilens-edge_engine Count: 14, Print Found: True
2022-01-04 16:30:52,718  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:52,723 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:52,724  INFO ilens-edge_engine Count: 15, Print Found: True
2022-01-04 16:30:54,227  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:54,237 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:54,238  INFO ilens-edge_engine Count: 16, Print Found: True
2022-01-04 16:30:55,301  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:55,319 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:55,319  INFO ilens-edge_engine Count: 17, Print Found: True
2022-01-04 16:30:56,949  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:56,959 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:56,959  INFO ilens-edge_engine Count: 18, Print Found: True
2022-01-04 16:30:57,814  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:57,842 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:57,842  INFO ilens-edge_engine Count: 19, Print Found: True
2022-01-04 16:30:59,409  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:30:59,416 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:30:59,416  INFO ilens-edge_engine Count: 20, Print Found: True
2022-01-04 16:31:00,877  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:31:00,985 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:31:00,986  INFO ilens-edge_engine Count: 21, Print Found: True
2022-01-04 16:31:16,742  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:31:16,784 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:31:16,784  INFO ilens-edge_engine Count: 22, Print Found: True
2022-01-04 16:31:19,599  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:31:19,611 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:31:19,611  INFO ilens-edge_engine Count: 23, Print Found: True
2022-01-04 16:31:24,488  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:31:24,493 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:31:24,494  INFO ilens-edge_engine Count: 24, Print Found: True
2022-01-04 16:31:37,012  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:31:37,019 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:31:37,019  INFO ilens-edge_engine Count: 25, Print Found: True
2022-01-04 16:31:38,154  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:31:38,169 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:31:38,169  INFO ilens-edge_engine Count: 26, Print Found: True
2022-01-04 16:44:52,102  INFO ilens-edge_engine building publishers 
2022-01-04 16:44:52,212  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 16:44:53,979  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 16:44:54,847  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:44:54,853 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:44:54,853  INFO ilens-edge_engine Count: 1, Print Found: True
2022-01-04 16:45:00,418  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:00,474 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:00,474  INFO ilens-edge_engine Count: 2, Print Found: True
2022-01-04 16:45:01,702  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:01,707 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:01,708  INFO ilens-edge_engine Count: 3, Print Found: True
2022-01-04 16:45:03,184  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:03,189 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:03,189  INFO ilens-edge_engine Count: 4, Print Found: True
2022-01-04 16:45:05,871  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:05,882 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:05,882  INFO ilens-edge_engine Count: 5, Print Found: True
2022-01-04 16:45:07,570  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:07,678 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:07,678  INFO ilens-edge_engine Count: 6, Print Found: True
2022-01-04 16:45:08,925  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:08,931 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:08,931  INFO ilens-edge_engine Count: 7, Print Found: True
2022-01-04 16:45:10,929  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:10,938 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:10,939  INFO ilens-edge_engine Count: 8, Print Found: True
2022-01-04 16:45:12,559  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:12,566 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:12,566  INFO ilens-edge_engine Count: 9, Print Found: True
2022-01-04 16:45:14,171  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:14,182 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:14,182  INFO ilens-edge_engine Count: 10, Print Found: True
2022-01-04 16:45:17,412  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:17,981 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:17,982  INFO ilens-edge_engine Count: 11, Print Found: True
2022-01-04 16:45:20,041  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:21,330 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:21,330  INFO ilens-edge_engine Count: 12, Print Found: True
2022-01-04 16:45:25,629  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:25,762 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:25,762  INFO ilens-edge_engine Count: 13, Print Found: True
2022-01-04 16:45:26,544  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:26,685 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:26,685  INFO ilens-edge_engine Count: 14, Print Found: True
2022-01-04 16:45:28,283  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:29,027 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:29,028  INFO ilens-edge_engine Count: 15, Print Found: True
2022-01-04 16:45:29,915  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:29,974 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:29,975  INFO ilens-edge_engine Count: 16, Print Found: True
2022-01-04 16:45:31,601  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:31,726 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:31,726  INFO ilens-edge_engine Count: 17, Print Found: True
2022-01-04 16:45:33,130  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:33,184 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:33,184  INFO ilens-edge_engine Count: 18, Print Found: True
2022-01-04 16:45:34,735  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:34,740 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:34,741  INFO ilens-edge_engine Count: 19, Print Found: True
2022-01-04 16:45:35,675  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:36,569 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:36,570  INFO ilens-edge_engine Count: 20, Print Found: True
2022-01-04 16:45:37,429  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:38,448 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:38,448  INFO ilens-edge_engine Count: 21, Print Found: True
2022-01-04 16:45:38,707  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:38,738 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:38,738  INFO ilens-edge_engine Count: 22, Print Found: True
2022-01-04 16:45:40,430  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:40,458 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:40,459  INFO ilens-edge_engine Count: 23, Print Found: True
2022-01-04 16:45:41,498  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:41,575 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:41,575  INFO ilens-edge_engine Count: 24, Print Found: True
2022-01-04 16:45:47,140  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:47,185 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:47,185  INFO ilens-edge_engine Count: 25, Print Found: True
2022-01-04 16:45:48,234  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:48,469 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:48,469  INFO ilens-edge_engine Count: 26, Print Found: True
2022-01-04 16:45:49,984  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:45:50,039 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:45:50,039  INFO ilens-edge_engine Count: 27, Print Found: True
2022-01-04 16:54:36,815  INFO ilens-edge_engine building publishers 
2022-01-04 16:54:36,959  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 16:54:38,460  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 16:54:45,504  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:54:45,513 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:55:48,097  INFO ilens-edge_engine building publishers 
2022-01-04 16:55:48,230  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 16:55:49,890  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 16:55:52,518  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:55:52,534 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:55:54,182  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:55:54,193 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:55:54,931  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:55:55,008 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:55:56,639  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:55:56,660 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:56:35,030  INFO ilens-edge_engine building publishers 
2022-01-04 16:56:35,167  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 16:56:36,878  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 16:56:42,522  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:56:42,538 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:57:26,131  INFO ilens-edge_engine building publishers 
2022-01-04 16:57:26,246  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 16:57:28,020  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 16:57:31,853  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:57:31,904 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:57:35,163  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:57:35,170 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:57:36,862  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:57:36,871 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:57:38,526  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:57:38,534 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:58:07,743  INFO ilens-edge_engine building publishers 
2022-01-04 16:58:07,857  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 16:58:09,159  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 16:58:14,966  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:58:14,973 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:58:18,017  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:58:18,033 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:58:58,428  INFO ilens-edge_engine building publishers 
2022-01-04 16:58:58,606  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 16:59:00,160  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 16:59:04,271  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:59:04,286 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:59:05,958  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:59:05,965 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:59:11,620  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:59:11,631 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:59:13,515  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:59:13,541 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:59:15,266  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:59:15,284 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:59:19,654  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:59:19,669 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 16:59:22,657  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 16:59:22,661 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:01:31,297  INFO ilens-edge_engine building publishers 
2022-01-04 17:01:31,535  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:01:33,285  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:01:38,610  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:01:38,634 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:01:39,139  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:01:39,152 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:01:40,502  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:01:40,511 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:01:44,148  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:01:44,189 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:01:45,776  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:01:45,782 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:02:02,727  INFO ilens-edge_engine building publishers 
2022-01-04 17:02:02,882  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:02:03,229 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 17:02:03,229  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:02:03,229 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 17:02:12,630  INFO ilens-edge_engine building publishers 
2022-01-04 17:02:12,877  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:02:14,291  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:02:25,469  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:02:25,475 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:02:27,138  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:02:27,151 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:02:31,554  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:02:31,581 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:02:33,224  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:02:33,241 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:02:40,151  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:02:40,185 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:02:42,765  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:02:42,775 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:02:44,458  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:02:44,493 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:02:46,088  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:02:46,096 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:02:47,632  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:02:47,665 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:02:51,950  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:02:51,961 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:02:53,339  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:02:53,344 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:03:11,657  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:03:11,720 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:03:14,152  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:03:14,193 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:03:15,746  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:03:15,753 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:03:24,258  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:03:24,266 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:03:27,533  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:03:27,649 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:03:29,767  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:03:29,782 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:03:34,460  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:03:34,502 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:03:41,257  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:03:41,904 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:03:43,178  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:03:43,211 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:03:45,953  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:03:45,989 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:03:47,457  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:03:47,467 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:03:53,144  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:03:53,152 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:03:59,390  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:03:59,759 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:04:00,082  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:04:00,097 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:04:01,674  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:04:01,692 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:04:03,302  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:04:03,359 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:04:09,724  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:04:09,730 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:04:10,350  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:04:10,358 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:04:18,297  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:04:18,302 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:04:18,887  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:04:18,905 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:04:23,670  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:04:23,682 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:08:36,338  INFO ilens-edge_engine building publishers 
2022-01-04 17:08:36,564  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:08:38,185  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:08:39,088  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:08:39,140 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:08:40,564  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:08:40,595 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:08:41,240  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:08:41,320 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:09:30,854  INFO ilens-edge_engine building publishers 
2022-01-04 17:09:31,026  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:09:32,315  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:09:33,445  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:09:33,483 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:09:35,998  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:09:36,015 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:09:41,748  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:09:41,754 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:09:42,736  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:09:42,757 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:09:44,535  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:09:44,552 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:09:47,035  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:09:47,116 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:09:48,695  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:09:48,700 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:09:50,148  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:09:50,155 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:09:52,079  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:09:52,157 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:09:53,786  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:09:53,806 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:09:55,781  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:09:55,800 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:09:58,242  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:09:58,325 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:09:59,831  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:09:59,836 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:01,223  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:01,243 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:06,836  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:06,871 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:07,695  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:07,723 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:09,393  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:09,435 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:11,082  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:11,094 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:12,807  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:12,843 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:14,195  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:14,207 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:15,922  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:15,932 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:16,867  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:16,874 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:18,853  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:18,871 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:21,688  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:21,739 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:22,691  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:22,696 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:28,387  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:28,425 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:29,507  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:29,514 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:31,122  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:31,143 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:31,885  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:31,892 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:33,596  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:33,618 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:34,915  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:34,976 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:36,561  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:36,571 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:38,243  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:38,255 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:39,956  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:39,965 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:40,789  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:40,798 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:42,350  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:42,356 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:43,073  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:43,078 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:48,539  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:48,579 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:49,183  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:49,189 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:50,858  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:50,863 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:52,463  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:52,469 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:54,055  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:54,078 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:54,663  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:54,705 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:56,350  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:56,371 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:57,034  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:57,044 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:58,661  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:58,700 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:10:59,278  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:10:59,302 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:00,921  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:00,936 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:01,606  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:01,611 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:07,256  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:07,276 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:07,855  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:07,860 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:09,437  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:09,448 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:10,106  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:10,115 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:11,782  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:11,805 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:12,463  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:12,468 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:14,120  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:14,159 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:15,772  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:15,787 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:17,352  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:17,360 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:18,090  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:18,097 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:19,786  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:19,799 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:20,376  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:20,401 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:25,981  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:25,998 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:26,676  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:26,686 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:28,302  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:28,307 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:29,929  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:29,939 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:31,584  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:31,590 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:32,257  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:32,285 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:33,913  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:33,933 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:34,705  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:34,737 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:36,360  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:36,382 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:36,966  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:36,984 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:38,586  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:38,619 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:39,238  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:39,250 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:44,925  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:44,932 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:45,557  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:45,577 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:47,152  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:47,167 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:47,858  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:47,887 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:49,446  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:49,470 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:50,350  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:50,357 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:52,051  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:52,056 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:53,716  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:53,727 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:11:59,588  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:11:59,633 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:12:02,349  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:12:02,372 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:12:04,908  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:12:04,966 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:12:10,568  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:12:10,576 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:12:11,654  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:12:11,659 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:12:35,229  INFO ilens-edge_engine building publishers 
2022-01-04 17:12:35,418  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:12:36,802  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:12:38,279  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:12:38,293 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:12:40,010  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:12:40,016 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:12:41,678  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:12:41,750 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:12:43,106  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:12:43,128 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:12:44,811  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:12:44,818 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:12:55,854  INFO ilens-edge_engine building publishers 
2022-01-04 17:12:55,979  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:12:57,357  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:12:58,523  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:12:58,533 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:12:59,973  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:12:59,992 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:13:00,711  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:13:00,777 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:13:02,393  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:13:02,399 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:13:03,799  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:13:03,821 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:13:05,442  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:13:05,459 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:18:37,632  INFO ilens-edge_engine building publishers 
2022-01-04 17:18:37,775  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:18:40,161  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:18:44,503  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:18:44,523 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:18:45,394  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:18:45,403 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:18:48,815  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:18:48,830 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:18:50,505  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:18:50,511 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:03,020  INFO ilens-edge_engine building publishers 
2022-01-04 17:19:03,184  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:19:04,729  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:19:06,085  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:06,141 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:07,134  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:07,149 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:09,160  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:09,166 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:11,290  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:11,302 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:12,610  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:12,625 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:14,275  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:14,285 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:16,185  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:16,190 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:17,686  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:17,706 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:18,472  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:18,478 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:28,445  INFO ilens-edge_engine building publishers 
2022-01-04 17:19:29,189  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:19:31,950  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:19:32,433  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:32,491 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:34,045  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:34,051 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:34,677  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:34,701 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:36,345  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:36,360 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:36,979  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:36,991 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:38,620  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:39,008 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:39,392  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:39,406 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:44,916  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:44,956 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:45,543  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:45,560 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:47,153  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:47,160 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:47,811  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:47,827 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:49,464  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:49,477 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:50,171  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:50,183 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:51,778  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:51,796 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:55,062  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:55,074 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:55,768  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:56,551 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:19:58,005  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:19:58,056 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:20:36,244  INFO ilens-edge_engine building publishers 
2022-01-04 17:20:36,378  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:20:37,946  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:20:38,431  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:20:38,446 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:20:40,015  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:20:40,031 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:20:42,611  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:20:42,618 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:20:48,337  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:20:48,344 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:20:49,401  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:20:49,413 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:20:51,034  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:20:51,045 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:20:53,851  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:20:53,864 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:20:55,312  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:20:55,331 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:20:56,731  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:20:56,741 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:20:58,689  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:20:58,700 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:00,447  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:00,500 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:02,114  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:02,138 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:04,715  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:04,719 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:06,409  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:06,421 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:07,691  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:07,699 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:13,342  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:13,349 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:14,309  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:14,347 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:16,010  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:16,024 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:17,631  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:17,642 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:19,419  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:19,443 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:20,802  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:20,837 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:22,423  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:22,435 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:23,505  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:23,510 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:25,175  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:25,191 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:29,318  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:29,697 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:34,990  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:35,009 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:36,046  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:36,051 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:37,716  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:37,721 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:38,448  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:38,462 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:40,172  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:40,177 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:41,522  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:41,527 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:43,188  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:43,220 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:44,846  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:44,906 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:46,513  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:46,537 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:47,338  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:47,438 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:48,981  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:49,168 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:49,723  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:49,733 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:55,146  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:55,150 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:55,761  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:55,774 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:57,486  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:57,500 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:21:59,222  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:21:59,345 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:00,635  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:00,640 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:01,257  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:01,266 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:02,947  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:02,994 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:03,627  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:03,637 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:05,243  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:05,263 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:05,900  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:05,905 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:07,465  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:07,487 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:08,173  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:08,202 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:13,846  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:13,859 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:14,461  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:14,471 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:16,146  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:16,152 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:16,757  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:16,765 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:18,343  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:18,356 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:18,985  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:18,994 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:20,671  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:20,701 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:22,308  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:22,351 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:23,927  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:23,935 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:24,655  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:24,678 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:26,328  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:26,336 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:27,041  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:27,046 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:32,640  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:32,645 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:33,228  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:33,233 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:34,824  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:34,831 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:36,590  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:36,613 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:38,162  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:38,167 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:38,827  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:38,833 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:42,910  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:42,924 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:43,592  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:43,597 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:45,206  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:45,229 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:45,884  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:45,899 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:51,515  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:51,525 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:52,092  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:52,102 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:53,731  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:53,740 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:54,446  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:54,455 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:56,066  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:56,073 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:57,015  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:57,024 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:22:58,596  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:22:58,602 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:00,235  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:00,243 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:06,178  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:06,187 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:07,333  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:07,338 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:08,958  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:08,965 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:11,512  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:11,517 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:17,153  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:17,161 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:18,250  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:18,260 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:19,900  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:19,905 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:22,486  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:22,493 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:24,239  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:24,596 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:25,692  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:25,720 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:27,678  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:27,682 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:29,274  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:29,304 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:30,967  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:30,987 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:33,643  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:33,652 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:35,255  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:35,287 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:36,670  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:36,683 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:42,254  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:42,261 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:43,163  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:43,172 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:44,953  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:44,968 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:46,506  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:46,525 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:48,251  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:48,256 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:51,417  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:51,423 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:52,424  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:52,437 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:54,039  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:54,044 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:55,390  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:55,419 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:57,101  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:57,109 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:23:58,209  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:23:58,224 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:03,884  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:03,904 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:04,925  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:04,954 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:06,579  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:06,585 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:07,297  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:07,303 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:08,994  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:09,019 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:10,376  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:10,398 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:13,764  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:13,778 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:15,380  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:15,385 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:16,250  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:16,257 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:18,615  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:18,726 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:24,072  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:24,094 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:24,667  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:24,721 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:26,285  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:26,291 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:27,946  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:27,983 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:29,461  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:29,482 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:30,172  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:30,185 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:31,828  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:31,834 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:32,493  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:32,499 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:34,067  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:34,077 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:34,748  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:34,758 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:36,360  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:36,376 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:37,119  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:37,123 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:42,686  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:42,788 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:43,384  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:43,390 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:44,922  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:44,930 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:46,197  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:47,261 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:49,590  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:49,602 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:51,215  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:51,229 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:52,805  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:52,855 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:53,626  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:53,649 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:55,291  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:55,362 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:24:56,038  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:24:56,146 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:02,163  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:02,185 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:03,718  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:03,723 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:05,429  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:05,437 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:07,008  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:07,017 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:07,808  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:08,177 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:09,451  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:09,477 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:10,187  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:10,197 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:11,866  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:11,881 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:12,431  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:12,440 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:14,032  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:14,110 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:14,721  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:14,733 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:20,431  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:20,437 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:20,989  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:21,012 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:23,355  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:23,385 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:24,938  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:24,946 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:25,820  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:25,849 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:27,488  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:27,497 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:29,089  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:29,118 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:35,145  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:35,158 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:36,216  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:36,228 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:37,834  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:37,844 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:40,390  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:40,395 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:46,035  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:46,057 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:47,101  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:47,132 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:48,799  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:49,615 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:51,371  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:51,383 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:53,104  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:53,129 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:54,532  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:54,623 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:57,512  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:57,573 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:58,130  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:58,138 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:25:59,843  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:25:59,855 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:02,515  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:02,521 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:04,216  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:04,256 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:05,532  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:05,575 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:11,164  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:11,180 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:12,069  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:12,115 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:13,738  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:13,766 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:15,429  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:15,440 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:17,081  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:17,088 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:18,659  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:18,692 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:20,249  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:20,258 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:21,300  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:21,305 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:22,876  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:22,882 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:25,985  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:25,990 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:27,088  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:27,095 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:32,740  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:32,754 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:33,768  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:33,786 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:35,420  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:35,425 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:36,194  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:36,207 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:37,927  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:37,934 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:39,261  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:39,267 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:41,002  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:41,013 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:42,583  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:42,589 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:44,300  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:44,307 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:45,111  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:45,116 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:46,680  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:46,686 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:47,367  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:47,376 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:52,919  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:52,926 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:53,570  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:53,599 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:55,166  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:55,172 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:56,805  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:56,810 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:58,454  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:58,460 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:26:59,029  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:26:59,044 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:00,720  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:00,725 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:01,398  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:01,403 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:03,056  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:03,062 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:03,637  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:03,643 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:05,293  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:05,305 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:05,992  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:05,998 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:11,550  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:11,556 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:12,166  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:12,179 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:13,797  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:13,803 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:14,502  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:14,507 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:16,129  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:16,168 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:16,773  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:16,779 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:18,411  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:18,417 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:20,120  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:20,145 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:21,696  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:21,702 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:22,394  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:22,401 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:24,094  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:24,126 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:24,780  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:24,785 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:30,475  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:30,480 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:30,996  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:31,002 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:32,676  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:32,681 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:34,372  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:34,380 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:35,934  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:35,949 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:36,639  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:36,645 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:38,365  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:38,382 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:39,039  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:39,067 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:40,671  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:40,691 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:41,263  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:41,341 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:42,963  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:42,974 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:43,576  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:43,584 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:49,303  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:49,315 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:49,919  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:49,932 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:51,529  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:51,565 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:52,159  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:52,167 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:53,793  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:53,825 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:54,634  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:54,639 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:56,286  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:56,292 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:27:58,022  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:27:58,033 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:03,987  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:03,994 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:05,078  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:05,086 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:06,748  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:06,753 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:09,332  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:09,341 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:14,897  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:14,910 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:15,958  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:15,967 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:17,627  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:17,633 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:20,260  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:20,267 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:21,991  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:21,996 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:23,396  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:23,451 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:25,295  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:25,301 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:27,014  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:27,019 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:28,697  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:28,718 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:31,385  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:31,396 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:33,112  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:33,135 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:34,353  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:34,372 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:40,019  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:40,024 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:40,982  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:41,007 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:42,589  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:42,596 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:44,323  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:44,328 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:45,978  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:45,986 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:47,447  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:47,479 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:49,180  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:49,218 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:50,090  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:50,097 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:51,781  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:51,786 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:53,200  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:53,213 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:54,902  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:54,909 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:28:55,989  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:28:55,994 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:01,613  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:01,622 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:02,747  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:02,756 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:04,332  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:04,369 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:05,127  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:05,132 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:06,712  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:06,718 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:08,130  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:08,150 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:09,808  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:09,821 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:11,507  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:11,541 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:13,190  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:13,196 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:13,979  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:13,995 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:15,637  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:15,641 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:16,275  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:16,280 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:21,804  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:21,813 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:22,436  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:22,447 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:24,069  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:24,074 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:25,722  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:25,734 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:27,285  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:27,329 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:27,939  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:27,944 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:29,582  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:29,603 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:30,275  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:30,286 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:31,827  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:31,835 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:32,557  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:32,562 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:34,174  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:34,186 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:34,834  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:34,840 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:40,423  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:40,438 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:41,107  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:41,119 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:42,728  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:42,736 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:43,373  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:43,393 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:44,986  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:44,992 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:45,637  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:45,643 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:47,330  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:47,341 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:48,958  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:48,971 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:50,663  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:50,669 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:51,239  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:51,271 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:52,902  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:52,908 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:53,702  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:53,746 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:59,233  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:59,259 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:29:59,952  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:29:59,975 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:01,492  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:01,511 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:03,195  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:03,200 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:04,762  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:04,792 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:05,490  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:05,499 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:07,252  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:07,259 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:07,906  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:07,912 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:09,649  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:09,656 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:10,196  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:10,217 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:11,865  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:11,871 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:12,466  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:12,472 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:18,153  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:18,159 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:18,739  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:18,745 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:20,418  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:20,436 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:21,014  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:21,021 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:22,719  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:22,726 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:23,613  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:23,632 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:25,198  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:25,204 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:26,887  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:26,905 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:32,791  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:32,812 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:33,867  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:33,872 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:35,525  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:35,532 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:38,219  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:38,224 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:43,832  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:43,839 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:44,817  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:44,826 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:46,587  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:46,592 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:49,219  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:49,229 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:50,819  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:50,824 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:52,242  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:52,251 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:54,180  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:54,187 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:55,924  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:55,934 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:30:57,600  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:30:57,632 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:00,307  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:00,440 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:01,949  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:01,958 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:03,279  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:03,293 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:08,952  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:08,958 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:09,893  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:09,916 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:11,483  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:11,497 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:13,163  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:13,220 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:14,838  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:14,857 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:16,396  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:16,408 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:17,964  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:18,076 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:19,038  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:19,046 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:20,711  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:20,716 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:22,038  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:22,044 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:23,799  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:23,805 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:24,778  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:24,782 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:30,629  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:30,636 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:31,542  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:31,548 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:33,233  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:33,287 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:33,911  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:33,915 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:35,676  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:35,681 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:37,068  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:37,083 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:40,611  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:43,773 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:50,729  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:50,736 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:51,299  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:51,316 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:52,976  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:52,986 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:31:54,544  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:31:54,553 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:34:05,861  INFO ilens-edge_engine building publishers 
2022-01-04 17:34:06,095  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:34:07,636  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:34:09,222  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:34:09,258 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:34:10,903  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:34:10,913 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:34:11,706  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:34:11,711 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:34:13,362  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:34:13,368 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:34:14,001  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:34:14,061 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:34:19,557  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:34:19,562 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:34:43,320  INFO ilens-edge_engine building publishers 
2022-01-04 17:34:43,441  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:34:46,582  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:35:03,849  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:35:03,864 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:35:08,135  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:35:08,141 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:35:11,946  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:35:11,952 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:35:48,636  INFO ilens-edge_engine building publishers 
2022-01-04 17:35:48,868  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:35:52,036  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:36:09,319  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:09,338 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:36:13,663  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:13,669 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:36:17,423  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:17,428 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:36:29,978  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:29,985 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:36:31,646  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:31,688 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:36:33,410  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:33,436 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:36:35,270  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:35,415 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:36:41,115  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:41,121 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:36:42,774  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:42,779 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:36:44,107  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:44,121 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:36:45,824  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:45,830 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:36:47,228  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:47,235 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:36:52,751  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:52,769 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:36:53,784  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:54,149 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:36:55,506  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:55,553 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:36:56,265  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:56,273 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:36:57,841  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:57,851 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:36:58,645  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:36:58,651 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:37:37,406  INFO ilens-edge_engine building publishers 
2022-01-04 17:37:37,653  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:37:40,146  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:38:22,009  INFO ilens-edge_engine building publishers 
2022-01-04 17:38:22,172  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:38:23,463  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:48:06,975  INFO ilens-edge_engine building publishers 
2022-01-04 17:48:07,149  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:48:09,308  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:49:09,284  INFO ilens-edge_engine building publishers 
2022-01-04 17:49:09,456  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:49:11,315  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:49:11,439 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:11,585 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:11,660 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:11,731 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:11,810 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:11,884 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:11,965 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:12,041 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:13,227 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:14,383 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:14,451 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:14,518 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:14,578 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:14,642 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:14,706 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:14,767 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:14,837 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:14,909 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:16,094 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:16,165 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:16,231 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:16,312 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:16,385 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:16,460 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:16,529 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:16,598 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:16,673 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:16,755 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:16,824 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:16,899 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:16,978 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:17,060 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:17,132 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:17,200 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:17,267 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:17,336 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:17,404 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:17,471 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:17,546 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:17,609 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:17,678 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:17,745 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:17,811 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:17,878 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:17,942 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:18,008 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:18,083 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:18,148 ERROR ilens-edge_engine Error: local variable 'count' referenced before assignment
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
UnboundLocalError: local variable 'count' referenced before assignment
2022-01-04 17:49:53,190  INFO ilens-edge_engine building publishers 
2022-01-04 17:49:53,376  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:49:55,310  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:49:55,441 ERROR ilens-edge_engine Error: Expected Ptr<cv::UMat> for argument 'img'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    cv2.putText(frame, str(self.count), (1300, 200), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 3,
TypeError: Expected Ptr<cv::UMat> for argument 'img'
2022-01-04 17:50:03,657  INFO ilens-edge_engine building publishers 
2022-01-04 17:50:03,934  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:50:05,311  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:50:41,024  INFO ilens-edge_engine building publishers 
2022-01-04 17:50:41,195  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:50:43,327  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:59:13,069  INFO ilens-edge_engine building publishers 
2022-01-04 17:59:13,209  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 17:59:15,244  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 17:59:16,686  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:59:16,694 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:59:17,432  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:59:17,438 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:59:19,037  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:59:19,058 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 17:59:20,128  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 17:59:20,135 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:00:26,110  INFO ilens-edge_engine building publishers 
2022-01-04 18:00:26,337  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 18:00:27,733  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 18:00:29,330  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:00:29,338 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:00:31,929  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:00:31,937 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:00:37,562  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:00:37,567 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:00:38,631  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:00:38,637 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:00:40,318  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:00:40,333 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:00:42,935  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:00:42,945 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:00:44,587  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:00:44,593 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:00:46,050  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:00:46,067 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:06:33,163  INFO ilens-edge_engine building publishers 
2022-01-04 18:06:33,415  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 18:06:35,054  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 18:06:43,436  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:06:43,444 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:06:44,520  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:06:44,644 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:06:46,181  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:06:46,203 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:06:48,847  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:06:48,853 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:06:50,533  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:06:50,552 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:06:51,959  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:06:51,978 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:06:53,857  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:06:53,867 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:06:59,353  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:06:59,379 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:06:59,952  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:06:59,969 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:01,541  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:01,547 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:02,909  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:03,972 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:08,592  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:08,608 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:09,486  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:09,513 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:11,209  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:11,234 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:12,842  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:12,909 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:15,982  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:15,987 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:17,646  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:17,655 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:18,632  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:18,645 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:20,317  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:20,339 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:21,695  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:21,700 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:23,403  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:23,416 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:24,435  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:24,446 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:30,104  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:30,113 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:31,234  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:31,243 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:36,699  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:36,730 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:38,362  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:38,384 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:40,038  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:40,061 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:41,760  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:41,770 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:42,501  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:42,506 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:44,139  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:44,145 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:44,789  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:44,794 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:50,370  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:50,377 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:50,935  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:50,959 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:52,627  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:52,634 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:55,818  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:55,829 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:56,475  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:56,507 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:58,104  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:58,124 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:07:58,774  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:07:58,778 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:00,405  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:00,416 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:01,107  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:01,113 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:02,733  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:02,745 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:03,335  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:03,360 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:08,997  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:09,010 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:09,669  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:09,707 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:11,185  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:11,205 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:11,935  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:11,954 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:13,533  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:13,538 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:14,223  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:14,228 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:15,876  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:15,881 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:17,583  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:17,589 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:19,142  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:19,147 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:19,802  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:19,824 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:21,507  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:21,512 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:22,172  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:22,203 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:27,764  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:27,779 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:28,435  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:28,452 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:30,008  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:30,022 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:31,751  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:31,757 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:33,291  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:33,297 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:34,174  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:34,182 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:35,738  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:35,765 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:36,426  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:36,441 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:38,120  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:38,128 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:38,692  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:38,704 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:40,363  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:40,373 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:41,025  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:41,048 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:46,617  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:46,625 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:47,281  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:47,292 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:48,863  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:48,869 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:49,544  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:49,550 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:51,161  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:51,185 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:52,080  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:52,103 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:53,779  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:53,786 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:08:55,379  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:08:55,386 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:09:01,375  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:09:01,389 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:09:02,430  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:09:02,442 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:09:04,106  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:09:04,112 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:09:06,692  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:09:06,713 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:09:12,362  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:09:12,387 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:09:13,510  INFO ilens-edge_engine Pushing to Mongo..
2022-01-04 18:09:13,515 WARNING ilens-edge_engine Either asset_id, asset_hierarchy or count_update_endpoint is not set!. Not updating the cards API!
2022-01-04 18:12:01,418  INFO ilens-edge_engine building publishers 
2022-01-04 18:12:01,540  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 18:12:01,860 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 18:12:01,860  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 18:12:01,861 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 18:12:24,945  INFO ilens-edge_engine building publishers 
2022-01-04 18:12:25,061  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 18:12:26,730  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 18:27:47,230  INFO ilens-edge_engine building publishers 
2022-01-04 18:27:47,358  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 18:27:56,415  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 18:27:56,415 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,416 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,430 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,460 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,474 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:56,475 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,489 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,505 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,521 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,536 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,565 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,579 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,593 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:56,594 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,611 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,638 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,639 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,667 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,668 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:56,669 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,685 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:56,687 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,699 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,699 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,712 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,713 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:56,714 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,732 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,746 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,758 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,773 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,787 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,788 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,789 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,804 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,805 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,817 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,818 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,820 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,833 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,834 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,850 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,896 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,924 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,924 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,940 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,955 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:56,956 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,972 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:56,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-04 18:27:56,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:56,999 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,014 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,015 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,030 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,043 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,057 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,058 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,060 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,076 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,117 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,134 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,135 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,182 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,196 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,210 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,211 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,224 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,224 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,254 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,255 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,271 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,283 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,299 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,300 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,317 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,343 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,360 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,373 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,375 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,390 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,390 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,420 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,434 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,449 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,450 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,451 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,463 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,479 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,479 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,480 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,494 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,495 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,496 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,510 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,524 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,525 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,526 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,540 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,555 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,556 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,571 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,572 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,583 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,585 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,614 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,626 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,627 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,629 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,642 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,644 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,657 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,689 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,689 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,701 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,702 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,704 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,716 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,717 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,719 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,732 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,733 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,747 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,748 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,761 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,762 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,777 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,807 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,808 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,824 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,837 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,839 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,852 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,866 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,868 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,896 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,897 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,899 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,913 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,926 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,927 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,929 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,942 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,956 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:57,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:57,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-04 18:27:57,990 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,018 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:58,019 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,035 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,077 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,092 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,106 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,107 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,122 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,137 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:58,138 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,151 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,152 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:58,152 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,168 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:58,169 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,181 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,182 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,196 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,213 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,232 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:58,233 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,244 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,246 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:58,248 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,290 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,291 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:27:58,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:27:58,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-04 18:27:58,305 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:19,147  INFO ilens-edge_engine building publishers 
2022-01-04 18:28:19,267  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 18:28:27,222  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 18:28:27,222 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,223 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,313 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,451 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,508 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,630 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,709 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,799 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:27,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-04 18:28:27,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,039 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,041 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,206 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,252 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,400 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:28,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-04 18:28:28,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,152 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,278 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,349 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,817 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:29,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-04 18:28:29,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,056 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,058 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,103 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,254 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,313 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,390 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,451 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,705 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,946 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,961 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:30,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-04 18:28:30,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,037 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,125 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,127 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,155 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,232 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,278 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-04 18:28:31,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-04 18:28:31,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 375, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 362, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 395, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-04 18:32:39,827  INFO ilens-edge_engine building publishers 
2022-01-04 18:32:39,936  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 18:32:43,072 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 18:32:43,073  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 18:32:43,073 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 18:33:06,188  INFO ilens-edge_engine building publishers 
2022-01-04 18:33:06,293  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 18:33:07,588  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 18:44:09,797  INFO ilens-edge_engine building publishers 
2022-01-04 18:44:09,965  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 18:44:11,565  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 18:44:48,366  INFO ilens-edge_engine building publishers 
2022-01-04 18:44:48,529  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 18:44:49,688 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 18:44:49,688  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 18:44:49,688 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 18:45:24,208  INFO ilens-edge_engine building publishers 
2022-01-04 18:45:24,349  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 18:45:30,376  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 18:46:22,384  INFO ilens-edge_engine building publishers 
2022-01-04 18:46:22,516  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 18:46:23,945  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 18:51:47,358  INFO ilens-edge_engine building publishers 
2022-01-04 18:51:47,474  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 18:51:48,980  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 18:52:15,301  INFO ilens-edge_engine building publishers 
2022-01-04 18:52:15,414  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 18:52:16,917  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 18:55:20,383  INFO ilens-edge_engine building publishers 
2022-01-04 18:55:20,487  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 18:55:21,805  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 18:57:15,129  INFO ilens-edge_engine building publishers 
2022-01-04 18:57:15,235  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 18:57:16,526  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 19:35:18,741  INFO ilens-edge_engine building publishers 
2022-01-04 19:35:18,891  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 19:35:20,629  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 19:39:05,879  INFO ilens-edge_engine building publishers 
2022-01-04 19:39:06,033  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 19:39:07,462  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 19:39:38,329  INFO ilens-edge_engine building publishers 
2022-01-04 19:39:38,465  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 19:39:39,903  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 19:42:38,084  INFO ilens-edge_engine building publishers 
2022-01-04 19:42:38,260  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 19:42:39,575  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 19:43:09,255  INFO ilens-edge_engine building publishers 
2022-01-04 19:43:09,518  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 19:43:11,109  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 19:44:51,091  INFO ilens-edge_engine building publishers 
2022-01-04 19:44:51,247  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 19:44:52,719  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 19:47:21,998  INFO ilens-edge_engine building publishers 
2022-01-04 19:47:22,135  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 19:47:23,483  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 19:49:09,853  INFO ilens-edge_engine building publishers 
2022-01-04 19:49:10,022  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 19:49:11,491  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 19:51:20,143  INFO ilens-edge_engine building publishers 
2022-01-04 19:51:20,293  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 19:51:21,679  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 19:55:59,651  INFO ilens-edge_engine building publishers 
2022-01-04 19:55:59,822  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 19:56:00,296 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 19:56:00,296  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 19:56:00,296 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 19:56:00,523 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 19:56:00,525 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 19:56:20,155  INFO ilens-edge_engine building publishers 
2022-01-04 19:56:20,410  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 19:56:21,767  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 21:18:41,788  INFO ilens-edge_engine building publishers 
2022-01-04 21:18:41,930  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 21:18:43,541  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 21:19:23,472  INFO ilens-edge_engine building publishers 
2022-01-04 21:19:23,725  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 21:19:25,354  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 21:19:50,919  INFO ilens-edge_engine building publishers 
2022-01-04 21:19:51,084  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 21:19:52,650  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 21:23:31,178  INFO ilens-edge_engine building publishers 
2022-01-04 21:23:31,342  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 21:23:32,750  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 21:38:18,815  INFO ilens-edge_engine building publishers 
2022-01-04 21:38:18,943  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 21:38:21,759 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 21:38:21,759  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 21:38:21,760 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 21:38:49,621  INFO ilens-edge_engine building publishers 
2022-01-04 21:38:49,859  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 21:38:51,379  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 21:42:21,855  INFO ilens-edge_engine building publishers 
2022-01-04 21:42:21,973  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 21:42:23,287  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 21:48:02,803  INFO ilens-edge_engine building publishers 
2022-01-04 21:48:02,960  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 21:48:04,528  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 21:54:52,553  INFO ilens-edge_engine building publishers 
2022-01-04 21:54:52,667  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 21:54:54,214  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 22:09:51,695  INFO ilens-edge_engine building publishers 
2022-01-04 22:09:51,934  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 22:09:53,623  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 22:10:49,105  INFO ilens-edge_engine building publishers 
2022-01-04 22:10:49,230  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 22:10:51,030  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 22:14:48,951  INFO ilens-edge_engine building publishers 
2022-01-04 22:14:49,121  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 22:14:50,594  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 22:18:57,878  INFO ilens-edge_engine building publishers 
2022-01-04 22:18:57,999  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 22:18:59,305  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 22:19:31,501  INFO ilens-edge_engine building publishers 
2022-01-04 22:19:31,644  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 22:19:33,315  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 22:32:21,092  INFO ilens-edge_engine building publishers 
2022-01-04 22:32:21,234  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 22:32:22,563  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 23:12:10,562  INFO ilens-edge_engine building publishers 
2022-01-04 23:12:10,712  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 23:12:10,848 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:10,945 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:11,023 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:11,110 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:11,190 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:11,262 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:11,392 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:11,487 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:11,575 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:11,676 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:11,761 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:11,846 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:11,930 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:11,986 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:12,049 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:12,108 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:12,164 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:12,228 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:12,284 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:12,358 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:12,420 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:12,482 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:12,546 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:12,620 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:12,680 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:12,739 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:12,803 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:12,856 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:12,920 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:12,988 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:13,045 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:13,105 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:13,159 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:13,235 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:13,292 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:13,352 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:13,413 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:13,485 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:13,537 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:13,602 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:13,661 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:13,735 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:13,798 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:13,857 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:13,921 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:13,979 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:14,038 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:14,115 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:14,177 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:14,239 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:14,299 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:14,365 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:14,422 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:14,499 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:14,558 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:14,616 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:14,676 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:14,746 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:14,803 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:14,880 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:14,941 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:15,003 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:15,070 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:15,129 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:15,195 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:15,256 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:15,320 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:15,379 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:15,444 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:15,509 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:15,579 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:15,635 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:15,702 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:15,759 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:15,818 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:15,875 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:15,949 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:16,017 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:16,079 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:16,143 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:16,200 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:16,264 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:16,321 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:16,383 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:16,443 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:16,505 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:16,571 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:16,631 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:12:16,689 ERROR ilens-edge_engine Error: [Errno 13] Permission denied: 'test_file.csv'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 392, in _predict
    my_file = open("test_file.csv", "a")
PermissionError: [Errno 13] Permission denied: 'test_file.csv'
2022-01-04 23:13:03,459  INFO ilens-edge_engine building publishers 
2022-01-04 23:13:03,647  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 23:13:24,960  INFO ilens-edge_engine building publishers 
2022-01-04 23:13:25,100  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 23:16:31,061  INFO ilens-edge_engine building publishers 
2022-01-04 23:16:31,199  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 23:26:28,580  INFO ilens-edge_engine building publishers 
2022-01-04 23:26:28,718  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 23:26:29,114 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 23:26:29,114  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 23:26:29,114 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 23:26:29,307 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 23:26:29,308 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 23:27:21,021  INFO ilens-edge_engine building publishers 
2022-01-04 23:27:21,161  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 23:27:22,832  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 23:31:37,008  INFO ilens-edge_engine building publishers 
2022-01-04 23:31:37,114  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 23:31:37,525 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 23:31:37,525  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 23:31:37,526 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 23:32:03,627  INFO ilens-edge_engine building publishers 
2022-01-04 23:32:03,740  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 23:32:05,315  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 23:49:25,304  INFO ilens-edge_engine building publishers 
2022-01-04 23:49:25,415  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 23:49:25,725 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 23:49:25,725  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 23:49:25,726 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 23:49:25,924 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-04 23:49:25,924 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-04 23:49:45,814  INFO ilens-edge_engine building publishers 
2022-01-04 23:49:45,933  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 23:49:47,357  INFO ilens-edge_engine Setting up frame processor !!
2022-01-04 23:53:14,234  INFO ilens-edge_engine building publishers 
2022-01-04 23:53:14,338  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-04 23:53:16,013  INFO ilens-edge_engine Setting up frame processor !!
2022-01-05 00:27:11,204  INFO ilens-edge_engine building publishers 
2022-01-05 00:27:11,380  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-05 00:27:12,944  INFO ilens-edge_engine Setting up frame processor !!
2022-01-05 00:27:13,053 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:13,150 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:13,259 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:13,336 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:13,413 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:13,486 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:13,569 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:13,640 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:13,703 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:13,804 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:13,868 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:13,936 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:14,029 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:14,094 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:14,165 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:14,248 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:14,314 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:14,382 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:14,463 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:14,535 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:14,599 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:14,678 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:14,747 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:14,807 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:14,877 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:14,945 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:15,009 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:15,075 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:15,143 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:15,212 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:15,271 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:15,337 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:15,412 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:15,474 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:15,539 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:15,608 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:15,680 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:15,738 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:15,800 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:15,875 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:15,936 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:15,994 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:16,062 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:16,150 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:16,211 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:16,273 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:16,350 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:16,421 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:16,482 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:16,555 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:16,645 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:16,708 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:16,770 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:16,846 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:16,910 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:16,973 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:17,042 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:17,112 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:17,189 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:17,281 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:17,389 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:17,465 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:17,551 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:17,638 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:17,708 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:17,785 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:17,876 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:17,958 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:18,043 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:18,132 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:18,204 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:18,265 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:18,366 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:18,466 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:18,551 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:18,635 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:18,708 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:18,789 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:18,878 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:18,942 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:19,052 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:19,131 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:19,203 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:19,295 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:19,384 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:19,496 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:19,598 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:19,681 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:19,763 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:19,849 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:19,931 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:20,009 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:20,100 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:20,169 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:20,247 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:20,349 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:27:20,419 ERROR ilens-edge_engine Error: list indices must be integers or slices, not str
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 386, in _predict
    print(_dets['conf'])
TypeError: list indices must be integers or slices, not str
2022-01-05 00:29:04,772  INFO ilens-edge_engine building publishers 
2022-01-05 00:29:04,883  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-05 00:29:06,450  INFO ilens-edge_engine Setting up frame processor !!
2022-01-05 00:31:26,468  INFO ilens-edge_engine building publishers 
2022-01-05 00:31:26,642  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-05 00:31:28,116  INFO ilens-edge_engine Setting up frame processor !!
2022-01-05 00:46:14,298  INFO ilens-edge_engine building publishers 
2022-01-05 00:46:14,595  INFO ilens-edge_engine Setting up frame processor !!
2022-01-05 00:58:45,519  INFO ilens-edge_engine building publishers 
2022-01-05 00:58:45,654  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-05 00:58:51,070  INFO ilens-edge_engine Setting up frame processor !!
2022-01-05 00:58:51,070 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-05 00:58:51,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 00:58:51,071 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,085 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,104 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,130 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,132 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,144 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,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 00:58:51,147 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,159 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,175 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,176 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,178 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,206 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,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 00:58:51,207 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,208 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,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 00:58:51,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 00:58:51,222 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,252 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,254 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,296 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,313 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,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 00:58:51,316 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,327 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,328 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,340 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,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 00:58:51,343 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,357 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,358 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,386 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,387 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,402 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,403 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,415 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,416 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,431 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,431 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,445 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,446 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,476 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,478 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,507 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,536 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,566 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,567 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,568 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,584 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,596 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,597 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,612 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,613 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,626 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,640 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,642 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,658 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,675 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,687 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,703 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,716 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,717 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,719 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,733 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,734 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,746 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,748 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,761 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,762 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,764 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,821 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,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 00:58:51,824 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,836 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,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 00:58:51,839 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,853 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,896 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,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 00:58:51,900 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,927 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,958 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,960 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,961 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:51,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 00:58:51,972 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,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 00:58:51,975 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,988 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:51,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 00:58:52,002 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,004 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:52,006 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,016 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,017 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,019 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:52,032 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,039 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:52,047 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,049 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,062 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,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 00:58:52,065 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,077 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,078 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:52,080 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,092 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,126 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,155 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,242 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,257 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,259 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:52,261 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,272 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,274 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,291 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,318 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,320 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:52,322 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,348 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,350 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:52,352 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,380 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,407 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,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 00:58:52,410 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,422 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,452 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,467 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,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 00:58:52,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 00:58:52,478 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,513 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,527 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 00:58:52,530 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 00:58:52,532 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,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 00:58:52,547 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:00,141  INFO ilens-edge_engine building publishers 
2022-01-05 01:13:00,265  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-05 01:13:02,236  INFO ilens-edge_engine Setting up frame processor !!
2022-01-05 01:13:33,354 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-05 01:13:33,355 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-05 01:13:33,387 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,389 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,391 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,391 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,392 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,393 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,402 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,403 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,404 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,404 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,405 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,406 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,417 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,418 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,420 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,420 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,420 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,421 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,433 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,434 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,435 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,435 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,436 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,437 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,448 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,449 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,450 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,450 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,451 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,452 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,463 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,464 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,464 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,465 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,465 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,466 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,478 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,479 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,479 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,479 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,480 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,481 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,493 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,494 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,494 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,495 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,495 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,495 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,508 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,509 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,510 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,510 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,511 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,512 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,523 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,524 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,525 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,525 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,526 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,527 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,538 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,539 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,540 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,541 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,541 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,542 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,553 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,554 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,555 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,555 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,556 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,557 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,568 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,569 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,570 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,571 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,572 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,573 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,583 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,584 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,585 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,585 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,586 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,587 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,598 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,599 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,600 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,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:13:33,601 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,602 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,613 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,614 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,614 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,615 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,615 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,616 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,628 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,629 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,630 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,631 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,631 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,632 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,643 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,644 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,644 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,645 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,645 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,646 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,658 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,659 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,659 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,660 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,660 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,661 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,674 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,675 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,676 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,676 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,676 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,677 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,689 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,690 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,690 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,691 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,691 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,692 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,704 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,705 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,705 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,705 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,706 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,706 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,720 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,721 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,722 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,722 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,723 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,724 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,735 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,737 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,738 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,738 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,738 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,739 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,750 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,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:13:33,752 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,752 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,753 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,754 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,765 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,767 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,768 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,769 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,770 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,771 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,780 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,781 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,782 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,782 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,783 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,783 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,796 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,798 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,800 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,801 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,803 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,805 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,813 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,814 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,816 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,816 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,817 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,819 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,826 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,828 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,830 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,831 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,832 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,833 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,842 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,844 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,846 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,846 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,848 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,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:13:33,857 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,858 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,860 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,861 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,862 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,864 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,871 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,873 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,874 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,874 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,875 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,876 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,886 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,887 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,889 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,889 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,891 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,892 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,901 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,902 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,904 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,904 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,905 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,906 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,917 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,919 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,921 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,922 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,923 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,925 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,931 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,932 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,934 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,934 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,935 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,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:13:33,946 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,948 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,949 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,950 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,951 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,952 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,961 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,963 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,964 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,964 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,965 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,967 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,977 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,979 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,981 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,982 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,984 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,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:13:33,991 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,993 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,994 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:33,995 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:33,996 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:33,998 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,006 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,008 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,010 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,010 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,012 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,014 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,022 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,023 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,025 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,025 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,026 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,028 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,037 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,038 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,040 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,041 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,042 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,043 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,051 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,053 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,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:13:34,056 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,057 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,059 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,067 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,068 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,071 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,072 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,073 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,075 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,081 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,083 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,085 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,085 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,087 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,089 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,096 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,098 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,099 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,100 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,101 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,103 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,111 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,113 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,114 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,115 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,116 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,117 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,126 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,128 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,129 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,129 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,131 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,132 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,141 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,143 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,144 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,144 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,145 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,147 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,156 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,158 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,159 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,160 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,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:13:34,162 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,171 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,173 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,174 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,175 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,176 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,177 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,187 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,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:13:34,190 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,191 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,192 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,194 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,202 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,204 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,206 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,207 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,208 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,210 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,218 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,219 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,221 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,221 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,223 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,224 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,232 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,234 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,236 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,237 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,239 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,241 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,247 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,249 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,251 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,251 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,253 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,255 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,263 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,264 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,266 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,266 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,268 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,269 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,278 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,280 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,282 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,283 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,284 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,286 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,292 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,294 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,295 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,296 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,297 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,298 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,307 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,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:13:34,311 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,311 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,312 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,314 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,322 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,324 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,325 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,326 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,327 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,328 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,337 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,339 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,340 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,341 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,342 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,344 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,352 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,354 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,356 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,356 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,358 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,360 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,367 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,369 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,371 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,372 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,373 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,374 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,382 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,384 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,385 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,386 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,387 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,388 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,398 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,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:13:34,401 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,402 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,403 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,404 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,414 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,415 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:13:34,418 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\streamio\frameProcessor.py", line 18, in run_model
    self.model.predict(data)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\edge_engine\ai\model\modelwraper.py", line 24, in predict
    prediction = self._predict(pre_x)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 415, in _predict
    obj['frame'] = cv2.resize(obj['frame'], (self.config.get('FRAME_WIDTH'), self.config.get('FRAME_HEIGHT')))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'


2022-01-05 01:13:34,418 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:13:34,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'

