[Mill MYB-YT507 development board trial experience] drive HiSpark IPC DIY Camera
[Copy link]
[Mil MYB-YT507 development board trial experience] i2c driver - Domestic chip exchange - Electronic Engineering World - Forum (eeworld.com.cn)
[Mil MYB-YT507 development board trial experience] tkinter Button learning - Domestic chip exchange - Electronic Engineering World - Forum (eeworld.com.cn)
[Mil MYB-YT507 development board trial experience] Serial port output - Domestic chip exchange - Electronic Engineering World - Forum (eeworld.com.cn)
[Mill MYB-YT507 development board trial experience] Use tornado to quickly create a web server - Domestic chip exchange - Electronic Engineering World - Forum (eeworld.com.cn)
[Mil MYB-YT507 development board trial experience] Use Python to obtain computer memory and CPU information - Domestic chip exchange - Electronic Engineering World - Forum (eeworld.com.cn)
[Mil MYB-YT507 development board trial experience] Install pyecharts module - Domestic chip exchange - Electronic Engineering World - Forum (eeworld.com.cn)
[Mil MYB-YT507 development board trial experience] Python displays memory and CPU real-time status 1 - Domestic chip exchange - Electronic Engineering World - Forum (eeworld.com.cn)
[Mil MYB-YT507 development board trial experience] Python lights up SSD1306 - Domestic chip exchange - Electronic Engineering World - Forum (eeworld.com.cn)
[Mil MYB-YT 07 development board trial experience] Python displays memory and CPU real-time status 2 - Domestic chip exchange - Electronic Engineering World - Forum (eeworld.com.cn)
[Mil MYB-YT507 development board trial experience] Replace ubuntu18 firmware - Domestic chip exchange - Electronic Engineering World - Forum (eeworld.com.cn)
1. Install opencv:
2. Then import cv2 reports an error: Illegal instruction (core dumped)
3. Solution:
sudo vi ~/.bashrc
Add
export OPENBLAS_CORETYPE=ARMV8 at the end
and run:
source ~/.bashrc
to solve the error.
4. Create a new camer.py file:
import cv2
cap = cv2.VideoCapture(0)
while True:
ret, frame = cap.read()
frame = cv2.flip(
frame,
1 # 1:水平镜像,-1:垂直镜像
)
cv2.imshow('frame', frame)
# 这一步必须有,否则图像无法显示
if cv2.waitKey(1) & 0xFF == ord('q'):
break
# 当一切完成时,释放捕获
cap.release()
cv2.destroyAllWindows()
5. Enable xfce4:
root@myir:~# startxfce4
6. Execute camer.py with python3
【Summary】It took a little time to install opencv to drive the USB camera. opnecv can help the development board to complete many things.
|