![]() |
EtherCAT Control Framework v0.9
Implementation of EtherCAT protocol using IgH EtherCAT library for robot controller.
|
#include <video_capture.hpp>
Signals | |
void | NewPixmapCapture () |
Public Member Functions | |
VideoCapture (QObject *parent=nullptr) | |
QPixmap | pixmap () const |
Protected Member Functions | |
void | run () override |
Private Member Functions | |
QImage | cvMatToQImage (const cv::Mat &inMat) |
QPixmap | cvMatToQPixmap (const cv::Mat &inMat) |
Private Attributes | |
QPixmap | pixmap_cap |
cv::Mat | frame_cap |
cv::VideoCapture | video_cap |
unsigned long | frame_rate = 30 |
uint8_t | cam_id = ID_CAMERA |
Camera ID will be your camera's device ID. If you don't have any camera attached to usb default ID will be 0. If you're sure about camera ID, open terminal and type $ sudo apt-get install v4l-utils $ v4l2-ctl –list-devices You can take your camera by taking the last digit in /dev/videoX X will be your device ID.
VideoCapture::VideoCapture | ( | QObject * | parent = nullptr | ) |
|
private |
|
private |
|
signal |
|
inline |
|
overrideprotected |
|
private |
|
private |
|
private |
|
private |
|
private |