Skip to content

cjchng/qt_mainmoil_6view

Repository files navigation

qt_mainmoil_6view

Sample Qt Moil Application

screenshot

1. Requirement

If you already have Opencv and Qt creator installed, the followings can be skipped. Opencv can be any version, Ubuntu 18.04 and Opencv 3.2.0 are recommented.

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 install libgtk-3-dev
sudo apt install libatlas-base-dev gfortran
sudo apt install libopencv-dev python-opencv

sudo apt install qtcreator qt5-default 

2. Build and Run

cd ~
git clone https://github.com/cjchng/qt_mainmoil_6view.git
cd ~/qt_mainmoil_6view/moildev_install
sudo chmod +x install.sh
sudo ./install.sh 	

qtcreator 

screenshot

Select "File/Open File or Project" in Qt menu bar, browse to ~/qt_mainmoil_6view/mainmoil.pro
	Select Project on the left side window, click "Configure Project"
Select Build/ Build project "mainmoil" or press Ctrl+B
The default {Build directory} of this project is ~/build-mainmoil-Desktop-Debug, please copy 
a image file to the {Build directory}
    cp ~/qt_mainmoil_6view/images/ {Build directory}    
    Press F5 to run in Qt creator

3. Video source from Raspberry camera

copy files in rpi_camera directory to a Raspberry Pi board with a camera, run
python3 rpi_camera.py
The Raspberry Pi will start video streaming, then we can specify the "Camera URL" in the mainmoil 
application, example URL is as the following,
http://{Raspberry Pi's IP}:8000/stream.mpeg  
Click on "Camera" button to start receiving the video stream.

4. Applications switch(CAR/ MEDICAL)

The default design of Mainmoil_6view is a split-screen view for CAR usage. To switch it to a different
style view for MEDICAL usage, please modify MOIL_APP in mainwindow.cpp as the following, 

screenshot

    The result would be 

screenshot

5. More

Please find more detail description about this project at:

<https://docs.google.com/presentation/d/1c1W65ponMch01k7egMYc0rotQ330t962lqH4vVwZHJs/edit?usp=sharing/> 

About

Sample Qt Moil Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages