Import CV2
error legal instruction (core dumped)
solution
After opencv is installed on the nanopc-t4 development board, an error of legal instruction (core dumped) will be reported when importing CV2, which is caused by problems such as the kernel. Through searching for data in many ways, a preliminary solution has been found.
Run from the command line
Solution to error reporting during command line operation:
Run openblas_CORETYPE=ARMV8 python3
Python file running
.py file operation error report solution:
The terminal runs sudo GEDIT ~ /.Bashrc
Add the environment variable export openblas at the end_Coretype = armv8
, save and close
Terminal running source ~ /.Bashrc