Git Product home page Git Product logo

rv1106_linux's Introduction

RV1106_Linux

Linux test for RV1106 dev board

v4l2

  1. class v4l2CapPicTool is a tool for capturing picture;

linux config

CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_SCSI_UFSHCD=y
CONFIG_MEDIA_USB_SUPPORT=y
CONFIG_USB_VIDEO_CLASS=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_STORAGE=y
CONFIG_USB_MASS_STORAGE=y

linux dts

/**********USB**********/
&usbdrd_dwc3 {
	status = "okay";
	dr_mode = "host";
};

compile

cd v4l2
mkdir build
cd build
cmake ..
make

time cost

capture time spent: 0.02077100 sec
save time spent: 0.00305000 sec
capture time spent: 0.01992500 sec
save time spent: 0.00133800 sec
capture time spent: 0.01959500 sec
save time spent: 0.00224100 sec
capture time spent: 0.02186700 sec
save time spent: 0.00239300 sec
capture time spent: 0.01873900 sec
save time spent: 0.00181500 sec
capture time spent: 0.01912700 sec
save time spent: 0.00134600 sec
capture time spent: 0.01973400 sec
save time spent: 0.00308300 sec
capture time spent: 0.01959300 sec
save time spent: 0.00237300 sec
capture time spent: 0.01859000 sec
save time spent: 0.00310700 sec
capture time spent: 0.01985500 sec
save time spent: 0.00120300 sec
capture time spent: 0.01963000 sec
save time spent: 0.00225200 sec
capture time spent: 0.02174400 sec
save time spent: 0.00238600 sec
capture time spent: 0.01873300 sec
save time spent: 0.00179200 sec

So, frequency of capture with usb camera can reach 50Hz.

framebuffer

linux config

CONFIG_FB_TFT=y
CONFIG_FB_TFT_ST7735R=y

linux dts

rv1106g-luckfox-pico-pro-max.dts

connect

st7735 pico
LED- PICO-GND
LED+ PICO-3.3V
RESX PICO-PIN27
DCX PICO-PIN26
SCL PICO-PIN14
SDA PICO-PIN15
VDDI PICO-3.3V
VDD PICO-3.3V
VDD PICO-PIN12

test

st7735test.c

arm-linux-gnueabihf-gcc -o st7735test st7735test.c

badapple

sudo ffmpeg -v 60 -i bad-apple-160x128-4.mp4 -pix_fmt rgb565le -f fbdev /dev/fb0

MNIST

build

cd MNIST
mkdri build
cd build
cmake ..
make
make install
scp -r ../rtsp_mnist_test [email protected]:~

run

killall rkipc
cd rtsp_mnist_test
./rtsp_mnist_test model/mnist.rknn

rtsp

rtsp://192.168.31.139/live/0

rv1106_linux's People

Contributors

litchicheng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.