.
Traceback (most recent call last):
File "/home/clonesangram/.virtualenvs/django3/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/clonesangram/.virtualenvs/django3/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/clonesangram/django_projects/ocrsite/ocr/views.py", line 187, in image_upload_view
return render(request, 'ocr/index1.html', {'form': form, 'img_obj': img_obj, 'text': text_detector(image)})
File "/home/clonesangram/django_projects/ocrsite/ocr/Test_OCR_Img.py", line 15, in text_detector
image = cv2.resize(np.float32(image), (320, 320), interpolation=cv2.INTER_AREA)
Exception Type: TypeError at /ocr/upload/
Exception Value: Expected Ptr<cv::UMat> for argument 'src'
[edit by admin: formatting]