1086 views|0 replies

6818

Posts

11

Resources
The OP
 

[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.

This post is from Domestic Chip Exchange
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list