Cov txheej txheem:
- Kauj ruam 1: Yuav tsum tau ua
- Kauj Ruam 2: Mount MicroSD Card (Tsuas yog W/ Dragonboard410c)
- Kauj Ruam 3: Txhim Kho Cov Qauv Yuav Tsum Tau Ua
- Kauj Ruam 4: Khiav AR Daim Ntawv Thov
Video: Augmented Reality (AR) rau Dragonboard410c lossis Dragonboard820c Siv OpenCV thiab Python 3.5: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Cov lus qhia no piav qhia yuav ua li cas rau nruab OpenCV, Python 3.5, thiab kev vam khom rau Python 3.5 kom ua tiav daim ntawv thov kev muaj tiag.
Kauj ruam 1: Yuav tsum tau ua
Koj yuav xav tau cov hauv qab no:
Dragonboard 410c lossis 820c;
Kev teeb tsa huv ntawm Linaro-alip/tus tsim tawm;
DB410c: Xeem hauv version v431.link
snapshots.linaro.org/96boards/dragonboard4..
DB820c: Xeem hauv version v228.link
snapshots.linaro.org/96boards/dragonboard8..
Tsawg kawg 16GB muaj peev xwm MicroSD Card (Yog tias siv Dragonboard 410c);
Rub tawm cov ntawv (hauv qhov kawg ntawm qib no), unzip thiab luam rau daim npav MicroSD;
Pom: Yog tias siv Dragonboard 820c, rub tawm cov ntawv, unzip thiab txav mus rau/home/*USER*/kom yooj yim siv cov lus txib;
- USB Hub;
- USB nas thiab keyboard;
- Kev sib txuas hauv is taws nem.
Kauj Ruam 2: Mount MicroSD Card (Tsuas yog W/ Dragonboard410c)
Qhib lub davhlau ya nyob twg hauv Dragonboard;
-
Hauv lub davhlau ya nyob twg khiav fdisk:
$ sudo fdisk -l
- Ntxig daim npav MicroSD rau hauv DragonBoard MicroSD daim npav qhov;
- Khiav fdisk dua, nrhiav lub npe (thiab muab faib) ntawm cov cuab yeej tshiab hauv cov npe:
$ sudo fdisk -l
Mus rau hauv paus cov npe:
$ cd ~ ib
Tsim daim nplaub tshev:
$ mkdir sdfolder cov
Mount MicroSD daim npav:
mount /dev /sd_card_partition_name sdfolder
Kauj Ruam 3: Txhim Kho Cov Qauv Yuav Tsum Tau Ua
Qhib lub davhlau ya nyob twg hauv Dragonboard;
Hauv lub davhlau ya nyob twg, mus rau cov npe xaiv (siv "~" rau 820c thiab teeb tsa SDCard rau 410c):
(820c) $ cd
(410c) $ cd ~/sdfolder
Khiav zram.sh tsab ntawv:
$ sudo bash augmented_reality/scripts/zram.sh
Hloov kho qhov system:
sudo apt hloov tshiab && sudo apt hloov tshiab
Nruab cov pob no:
sudo apt install -y debootstrap schroot git curl pkg-config zip unzip sej python-pip g ++ zlib1g-dev openjdk-8-jdk libhdf5-dev libatlas-base-dev gfortran v4l-utils hdf5* libhdf5* libpng-dev build-essential cmake libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libjpeg-dev libtiff5-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libgtk2.0-dev libgtk-3-dev
Mus rau phau ntawv no:
$ cd /usr /src
Rub tawm Python 3.5:
sudo wget
Extract lub pob:
$ sudo tar xzf Python-3.5.6.tgz
Rho tawm cov pob ntim:
$ sudo rm Python-3.5.6.tgz
Mus rau Python 3.5 cov npe:
$ cd Python-3.5.6
Pab kom ua kom zoo dua rau Python 3.5 muab tso ua ke:
$ sudo./configure-qhib-optimizations
Sau Python 3.5:
$ sudo ua altinstall
Txhim kho pip thiab teeb tsa cov cuab yeej:
$ sudo python3.5 -m pip nruab -hloov kho pip && python3.5 -m pip nruab -hloov kho setuptools
Nruab numpy:
$ python3.5 -m pip nruab numpy
Mus rau phau ntawv teev npe xaiv:
(820c) $ cd ~
(410c) $ cd ~/sdfolder
Clone OpenCV thiab OpenCV Pab cov chaw cia khoom:
$ sudo git clone -b 3.4 https://github.com/opencv/opencv.git && sudo git clone -b 3.4
Mus rau phau ntawv teev npe:
$ cd opencv
Tsim cov npe thiab mus rau nws:
$ sudo mkdir tsim && cd tsim
Khiav CMake:
$ sudo cmake -D CMAKE_BUILD_TYPE = RELEASE -D CMAKE_INSTALL_PREFIX =/usr/local -D BUILD_opencv_java = OFF -D BUILD_opencv_python = OFF -D BUILD_opencv_python3 = ON -D PYTHON3_DEFAULEX = $ $ uas python3.5) -D PYTHON_INCLUDE_DIR =/usr/local/suav nrog/python3.5m/-D INSTALL_C_EXAMPLES = OFF -D INSTALL_PYTHON3_EXAMPLES = OFF -D BUILD_EXAMPLES = OFF -D WITH_CUDA = OFF -D BLDS -DBUILD_TBB = ON -D OPENCV_ENABLE_NONFREE = ON -DBUILD_opencv_xfeatures2d = OFF -D OPENGL = ON -D OPENMP = ON -D ENABLE_NEON = ON -D BUILD_PERF_TESTS = OFF -D OPENCV_EXTRA_MODULES..
Sau OpenCV nrog 4 cores:
$ sudo ua -j 4
Nruab OpenCV:
$ sudo ua nruab
Mus rau phau ntawv teev npe xaiv:
(820c) $ cd ~
(410c) $ cd ~/sdfolder
Nruab Python3.5 cov tseev kom muaj:
$ sudo python3.5 -m pip install -r requirements.txt --no -cache -dir
Ntsuas ntshuam:
sej 3.5
> ntshuam cv2 >> ntshuam hwj chim
Kauj Ruam 4: Khiav AR Daim Ntawv Thov
Mus rau phau ntawv teev npe xaiv:
(820c) $ cd
(410c) $ cd ~/sdfolder
Mus rau augmented reality directory:
$ cd augmented_reality/
Khiav daim ntawv thov:
$ python3.5 app.py
Pom: Tam sim no txuas lub USB lub koob yees duab thiab qhib siv browser nrog lub rooj IP chaw nyob thiab chaw nres nkoj (piv txwv li 192.168.1.1:5000), luam tus qauv khaws tseg rau hauv daim nplaub tshev siv thiab muab tso rau ntawm xub ntiag ntawm lub vev xaib xws li cov duab nyob rau sab saum toj. Nws muaj peev xwm hloov pauv tsiaj los ntawm kev tawm tsam qhov chaws, mus rau kab 92 thiab hloov lub npe ua ntej kaw cov vis dis aus hais kom ua, cov tsiaj muaj av yog: nyuj, hma liab, pirate-nkoj-rog, nas thiab hma. Nws kuj tseem tuaj yeem hloov cov duab siv los ntawm kev hloov cov duab hauv daim nplaub tshev siv.
Pom zoo:
Yuav Siv Raspberry Pi li cas GPIO Pins thiab Avrdude rau Bit-bang-program DIMP 2 lossis DA PIMP 2: 9 Cov Kauj Ruam
Yuav Siv Raspberry Pi li cas GPIO Pins thiab Avrdude rau Bit-bang-program DIMP 2 lossis DA PIMP 2: Cov no yog cov lus qhia ib qib zuj zus qhia yuav siv Raspberry Pi li cas thiab pub dawb qhib-qhov hais kom ua avrdude rau ntsis-bang -program DIMP 2 lossis DA PIMP 2. Kuv xav tias koj paub zoo txog koj li Raspberry Pi thiab kab lus LINUX. Koj tsis tas yuav
Yuav Tsim Li Cas thiab Ntxig Ib Lub Rooj Thiab Ntxiv Kab Ntxiv Thiab/lossis Kab Rau Cov Lus Hauv Microsoft Office Word 2007: 11 Cov Kauj Ruam
Yuav Tsim Li Cas thiab Ntxig Cov Lus Thiab Ntxiv Kab Ntxiv Thiab/lossis Kab Rau Cov Lus Hauv Microsoft Office Word 2007: Koj puas tau muaj cov ntaub ntawv ntau uas koj ua haujlwm nrog thiab xav rau koj tus kheej … " Kuv yuav ua li cas ntawm cov ntaub ntawv no saib zoo dua thiab nkag siab yooj yim dua? " Yog tias yog, tom qab ntawd lub rooj hauv Microsoft Office Word 2007 yuav yog koj cov lus teb
Txaus Siab Rau Koj Tus Kheej Tsuas Yog Siv 12V-rau-AC-kab Inverter rau LED Lub Teeb Hluav Taws Xob Tsis txhob Rov Ua Rau Lawv rau 12V.: 3 Cov Kauj Ruam
Txaus Siab Rau Koj Tus Kheej Tsuas Yog Siv 12V-rau-AC-kab Inverter rau LED Lub Teeb Hluav Taws Xob Tsis txhob Rewiring Lawv rau 12V: Kuv txoj kev npaj tau yooj yim. Kuv xav txiav cov phab ntsa uas siv hluav taws xob LED teeb ua ib daim ces rov txuas nws kom khiav tawm 12 volts. Lwm txoj hauv kev yog siv lub zog hloov pauv, tab sis peb txhua tus paub tias lawv tsis muaj txiaj ntsig zoo, puas yog? Txoj cai? Los yog lawv?
Tes Thib Peb ++: Kev Siv Tes Siv Ntau Rau Cov Khoom Siv Hluav Taws Xob thiab Lwm Yam Ua Haujlwm Zoo: 14 Kauj Ruam (nrog Duab)
Tes Thib Peb ++: Kev Siv Tes Siv Ntau Rau Cov Khoom Siv Hluav Taws Xob thiab Lwm Yam Ua Haujlwm Tsis Zoo: Yav dhau los Kuv tau siv tes thib peb/pab txhais tes muaj nyob ntawm cov khw muag khoom hluav taws xob thiab tau poob siab nrog lawv qhov siv tau. Kuv tsis tuaj yeem tau txais cov yeeb yaj kiab raws qhov kuv xav tau lossis nws siv sijhawm ntau dua qhov nws yuav tsum tau teeb tsa
Txuas tus Ipod lossis Lwm Tus Neeg Siv Mp3 rau Cov Hais Lus Hauv Tsev Ib Yam Tsis Muaj Tus Nqi kim thiab Bulky Amplifier!: 4 Cov Kauj Ruam
Txuas tus Ipod lossis Lwm Tus Neeg Siv Mp3 rau Cov Hais Lus Hauv Tsev Ib Yam Tsis Muaj Tus Nqi kim thiab Bulky Amplifier!: Koj puas muaj cov hais lus tso suab ntxiv, uas yog tuaj nrog cheep stereos uas tawg lossis koj tsuas yog muaj yam tsis muaj laj thawj? Hauv Cov Lus Qhia Kuv yuav qhia koj yuav ua li cas koj tuaj yeem txuas lawv rau txhua tus neeg siv Mp3 lossis ib lub cuab yeej twg nrog lub suab nrov