I'm using raspberry pi 4 and installed openvino to use the recognition feature. I ignored that the cv2 version is 4.2.0-openvino, because the dnn function cannot be used, so I upgraded opencv. After the upgrade, my original code did not execute. There are many errors, is there a solution?
This is the error code:
Traceback (most recent call last):
File "/home/pi/Desktop/test3/FPS.py", line 1, in <module>
import cv2
File "/home/pi/.local/lib/python3.7/site-packages/cv2/__init__.py", line 181, in <module>
bootstrap()
File "/home/pi/.local/lib/python3.7/site-packages/cv2/__init__.py", line 111, in bootstrap
load_first_config(['config.py'], True)
File "/home/pi/.local/lib/python3.7/site-packages/cv2/__init__.py", line 106, in load_first_config
exec_file_wrapper(fpath, g_vars, l_vars)
File "/home/pi/.local/lib/python3.7/site-packages/cv2/load_config_py3.py", line 8, in exec_file_wrapper
code = compile(f.read(), os.path.basename(fpath), 'exec')
ValueError: source code string cannot contain null bytes
Hope to get help from kind people