Skip to content

Commit

Permalink
Вынес в отдельный проект все что касается QCamera
Browse files Browse the repository at this point in the history
  • Loading branch information
MimusTriurus committed Feb 4, 2018
1 parent a4aebdd commit 2e2346a
Show file tree
Hide file tree
Showing 35 changed files with 27 additions and 922 deletions.
27 changes: 20 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
# QtVideoStreamer
Simple Qt video streamer
____________________________________________________________________________________________________________
ImageSerialization - static library of serialization/deserialization QImage

MatSerialization - static library of serialization/deserialization cv::Mat

CvVideoCapture - static library of image capture from camera by means of OpenCV

QVideoCapture - static library of image capture from camera by means of Qt (QCamera)

VideoTransmitter - static library of image transmitting from camera to application-receiver over network

VideoReceiver - static library of image receiving over network from application-transmitter

FpsChecker - static library of check fps

CvTransmitterTest - test application – image transmitter from camera by means of OpenCV

CvReceiverTest - test application – image receiver from camera by means of OpenCV

QImgTransmitterTest - test application – image transmitter from camera by means of Qt (QCamera)
QImgReceiverTest - test application – image receiver from camera by means of Qt (QCamera)
VideoCaptureTest - test CvVideoCapture
_____________________________________________________________________________________________________________

System requirements:
Expand All @@ -38,7 +35,23 @@ Setup for Windows:
Setup for Linux:
----------------------------------------------
1. Clone the repository;
2. Launch the console and run command “sudo apt-get install libopencv-dev” and “ sudo apt-get install qtmultimedia5-dev”;
2. Launch the console and run command “sudo apt-get install libopencv-dev”;
3. Build the project.

Compiled applications are located in folder “bin”

Remarks:
----------------------------------------------
OpenCV relies on the V4L2 (Video for Linux) module, so try adding the following line at the bottom of the file /etc/modules and rebooting your Raspberry Pi.

bcm2835-v4l2

Mine now looks like this in toto:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

bcm2835-v4l2
This ensures that the Broadcom Video For Linux 2 (v4l2) driver is loaded at all subsequent reboots.
15 changes: 7 additions & 8 deletions README_RUS.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
# QtVideoStreamer
Стриминг видео-потока с камеры по сети ( UDP ).
----------------------------------------------
ImageSerialization - статическая библиотека сериализации и десереализации QImage

MatSerialization - статическая библиотека сериализации и десереализации cv::Mat

CvVideoCapture - статическая библиотека захвата изображения с камеры средствами OpenCV

QVideoCapture - статическая библиотека захвата изображения с камеры средствами Qt (QCamera)

VideoTransmitter - статическая библиотека передачи изображения с камеры приложению-приемнику по сети

VideoReceiver - статическая библиотека приема изображения по сети от приложения-передатчика

FpsChecker - статическая библиотека расчета fps

CvTransmitterTest - тестовое приложение-передатчик изображения с камеры средствами OpenCV

CvReceiverTest - тестовое приложение-приемник изображения с камеры средствами OpenCV

QImgTransmitterTest - тестовое приложение-передатчик изображения с камеры средствами OpenCV

QImgReceiverTest - тестовое приложение-приемник изображения с камеры средствами OpenCV
VideoCaptureTest - тест CvVideoCapture

Системные требования:
1. ОС: Windows, Linux( Ubuntu 16.04, Raspbian );
Expand All @@ -36,7 +32,10 @@ QImgReceiverTest - тестовое приложение-приемник и

Сборка на Linux(Ubuntu 16.04, Raspbian)
1. Склонировать репозиторий;
2. Запустить терминал и выполнить команду sudo apt-get install libopencv-dev и sudo apt-get install qtmultimedia5-dev;
2. Запустить терминал и выполнить команду sudo apt-get install libopencv-dev;
3. Собрать проект.

Скомпилированные приложения находятся в папке bin

Примечание:
Для использования raspicam необходимо добавить строку bcm2835-v4l2 в файл /etc/modules
23 changes: 0 additions & 23 deletions lib/static/ImageSerialization/ImageSerialization.cpp

This file was deleted.

15 changes: 0 additions & 15 deletions lib/static/ImageSerialization/ImageSerialization.h

This file was deleted.

33 changes: 0 additions & 33 deletions lib/static/ImageSerialization/ImageSerialization.pro

This file was deleted.

50 changes: 0 additions & 50 deletions lib/static/QVideoCapture/CameraFrameGrabber.cpp

This file was deleted.

25 changes: 0 additions & 25 deletions lib/static/QVideoCapture/CameraFrameGrabber.h

This file was deleted.

17 changes: 0 additions & 17 deletions lib/static/QVideoCapture/QVideoCapture.cpp

This file was deleted.

28 changes: 0 additions & 28 deletions lib/static/QVideoCapture/QVideoCapture.h

This file was deleted.

26 changes: 0 additions & 26 deletions lib/static/QVideoCapture/QVideoCapture.pro

This file was deleted.

2 changes: 0 additions & 2 deletions lib/static/VideoReceiver/VideoReceiver.pro
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,3 @@ unix {
target.path = /usr/lib
INSTALLS += target
}

include(../../../config.pri)
2 changes: 0 additions & 2 deletions lib/static/VideoTransmitter/VideoTransmitter.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ unix {
target.path = /usr/lib
INSTALLS += target
}

include(../../../config.pri)
2 changes: 0 additions & 2 deletions lib/static/static.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ TEMPLATE = subdirs
CONFIG += ordered

SUBDIRS += \
ImageSerialization \
MatSerialization \
QVideoCapture \
CvVideoCapture \
VideoTransmitter \
VideoReceiver \
Expand Down
50 changes: 0 additions & 50 deletions test/QCameraTest/CameraFrameGrabber.cpp

This file was deleted.

Loading

0 comments on commit 2e2346a

Please sign in to comment.