Giter Club home page Giter Club logo

qt_opencv's Introduction

Qt_OpenCV

This repository contains Qt/QtQuick apps using OpenCV.

CannyQml

It's an example of using a new feature in Qt5.5 which is filter that you can add it in the video output in Qml, and then create this filter in C++. There is an article written by Laszlo Agocs taking about filters which can give you more depth about it.

The filter, made in this example, uses OpenCV Gaussian Blur and Canny edge detector for YUV420P camera.

cannyqml

qt_opencv's People

Contributors

theshadowx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

qt_opencv's Issues

(CannyQml:5074): GStreamer-CRITICAL **: 12:55:23.000: write map requested on non-writable buffer

Settings

Ubuntu 18 Qt 5.12 Opencv 3.2.

I updated CannyQml.pro as below:

CannyQml.pro
+++++++++++++++++++++++++++++
CONFIG += c++11

SOURCES += main.cpp
videofilter.cpp

RESOURCES += qml.qrc

Additional import path used to resolve QML modules in Qt Creator's code model

QML_IMPORT_PATH =

Default rules for deployment.

include(deployment.pri)

HEADERS +=
videofilter.h

unix{
INCLUDEPATH += /usr/include/opencv
LIBS += -L/usr/lib/x86_64-linux-gnu/
-lopencv_core
-lopencv_imgproc
-lopencv_highgui
-lopencv_calib3d
-lopencv_features2d
-lopencv_imgcodecs
-lopencv_videoio
}

The GUI runs for 1sec

But I get to see the below error
++++++++++++++++++++++++++++++

12:55:15: Starting /home/mike/Downloads/Qt_OpenCV-master/QtQuick/build-CannyQml-Desktop_Qt_5_12_0_GCC_64bit-Debug/CannyQml...
QML debugging is enabled. Only use this in a safe environment.

(CannyQml:5074): GStreamer-CRITICAL **: 12:55:23.000: write map requested on non-writable buffer
12:55:23: The program has unexpectedly finished.
12:55:23: The process was ended forcefully.
12:55:23: /home/mike/Downloads/Qt_OpenCV-master/QtQuick/build-CannyQml-Desktop_Qt_5_12_0_GCC_64bit-Debug/CannyQml crashed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.