Skip to content

cjchng/mainmoil_6view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mainmoil 6view

A sample project for moil system 6 views display, tested both on ubuntu 18.04 and raspberrypi( Raspbian Buster )

screenshot

1. Requirement

For RaspberryPi, please download Raspbian opetating system image : https://www.raspberrypi.org/downloads/raspbian/ following the installing steps : https://www.raspberrypi.org/documentation/installation/installing-images/ or tutorial : https://oranwind.org/-raspberry-pi-win32-disk-imager-shao-lu-sd-qia-jiao-xue/

If you already have Opencv installed, the followings can be skipped. Opencv can be version 3.x.x or version 4.x.x.

sudo apt update
sudo apt upgrade
sudo apt install build-essential cmake pkg-config
sudo apt install libjpeg-dev libpng-dev libtiff-dev
sudo apt install software-properties-common
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt update
sudo apt install libjasper1 libjasper-dev
sudo apt update
sudo apt install libgtk-3-dev
sudo apt install libatlas-base-dev gfortran
sudo apt install libopencv-dev python-opencv

2. For Raspberry Pi/ NVIDIA Jetson TX2

For Raspberry Pi, please replace libmoildev.a with libmoilde_rpi.a 
cd lib
cp libmoildev_rpi.a libmoildev.a 

For NVIDIA Jetson TX2, please replace libmoildev.a with libmoilde_jetson.a 
cd lib
cp libmoildev_jetson.a libmoildev.a 

3. Build and Run

mkdir build
cd build
cmake ..
make
./mainmoil

4. Key operations:

c : start camera
0 : 6 channels view
1 : Original 
2..7 : channel 1..6
8 : Panorama 
up/down : alpha +/-
left/right : beta +/-
+/- : zoom +/-
r : reset alpha, beta, zoom   
esc : exit

5. Options

  1. Disk Cache

By default, MAP_CACHE_ENABLED is set as true in mainwindow.cpp for system performance consideration. Both xMaps and yMaps are generated by the calling of AnyPoint function will be store in files and read back next time. It can take about 50 sec. on Raspberry Pi for the first time.

About

moil demo of 6 views on ubuntu or raspberrypi

Resources

Stars

Watchers

Forks

Packages

No packages published