A module of OpenCV, the graphical and computer vision library, that provides high ordered features related to GUI(Graphical User Interface).
Questions tagged [highgui]
41 questions
13
votes
1 answer
OpenCV4 error: ‘CV_CAP_PROP_FRAME_WIDTH’ was not declared in this scope
I recently migrated from OpenCV3.3 to the latest version OpenCV4 on my Ubuntu 18.04 LTS. I have some persistent issues with the installation. My installation did not give any errors when I followed this installation tutorial. But whenever I include…

Arun Kumar
- 634
- 2
- 12
- 26
11
votes
1 answer
How to get Mat with a drawable input in Android using OpenCV
I have some image files in the drawable folder. And now, I want to convert them into opencv Mat object. I've found a function:
Mat img = Highgui.imread(inFile);
which is reading a file path to get the Mat.
However, I can't get path of my images as…

Season
- 1,178
- 2
- 22
- 42
7
votes
1 answer
cv::imshow sometimes is very slow
I've got a problem with cv::imshow. It normally consumes about 1-2 ms processing time for my image size but at some point in my processing-pipeline it uses 4-8 ms for the same kind of images.
I have a method
void Tool::displayImage()
{
…

Micka
- 19,585
- 4
- 56
- 74
4
votes
0 answers
OpenCV Crosscompile for ARM: highgui error (GTK2+)
I'm have build the OpenCV library from source for Zynq (ARM). But, OpenCV was build on the same PC for x86 (PC) also. Firstly, I can execute every example on my PC without any issues. Secondly, I am able to crosscompile and execute every program on…

pank1t
- 41
- 2
3
votes
0 answers
OpenCV highgui specifying compositor backend (X11,Wayland,OpenGL) for window creation
My system uses Xwayland, a wayland backend which is able to support native X11 processes.
I want to be able to get X forwarding support on a simple application that makes use of "namedWindow" and "imshow" functions. When I run the app, the X…

mozcelikors
- 2,582
- 8
- 43
- 77
3
votes
2 answers
Java implementation of Opencv (3.0.0) template matching
I want to match a template (small image) in a given picture using Opencv.
I found the following code from this port: OpenCV Template Matching example in Android
The problem is starting openvc 3.0.0, highgui is broken down into new videoio and…

kartik
- 293
- 4
- 9
2
votes
1 answer
Mouse pointer style in Opencv window with QT
I have custom build opencv 4.0.1 with Cuda 9.2 and QT 5.9.6 for my project based on image processing. In the application there is a need of user input where the user clicks on some points of a picture which shown by opencv namedWindow function. The…

Siyad M
- 131
- 3
- 15
2
votes
2 answers
cv::imshow in opencv is only displaying parts of a composite image, but displaying the parts separately works. Why?
Objective and problem
I'm trying to process a video file on the fly using OpenCV 3.4.1 by grabbing each frame, converting to grayscale, then doing Canny edge detection on it. In order to display the images (on the fly as well), I created a Mat class…

pusrob
- 81
- 7
2
votes
0 answers
UnsatisfiedLinkError: org.opencv.highgui.Highgui.imread when process the image
I have UnsatisfiedLinkError when tried to run the code. So I packed these two classes into a .jar
BrightnessPlugin
package brightness.copy;
import interfaces.IEnhancementOption;
import plugins.IEnhancementPlugin;
import window.EditImageWindow; …

Dala Rifat
- 21
- 3
2
votes
1 answer
cv::imshow does not display cv::mat color when on different thread
This is a class I use to spawn a HighGui window with some content on different thread.
class Capture {
private:
bool running;
std::thread thread;
cv::Mat background;
void loop() {
while (running) {
cv::imshow("sth",background);
…

Marinos K
- 1,779
- 16
- 39
2
votes
2 answers
Android Studio OpenCV NDK: Unspecified error, The function is not implemented
I write in Android Studio on Windows. And I use OpenCV in my native c++ code.When calling the function, I get this error in logcat:
"OpenCV Error: Unspecified error (The function is not implemented.
Rebuild the library with Windows, GTK+ 2.x or…

imported_lis
- 325
- 3
- 17
2
votes
2 answers
OpenCV 3.0 with Qt 5.5: Toolbar icons and control panel not shown
I built OpenCV 3.0.0 with Qt support (Qt 5.5) in order to try some of the advanced HighGUI features:
cv::namedWindow("Main", CV_WINDOW_NORMAL | CV_WINDOW_KEEPRATIO | CV_GUI_EXPANDED);
cv::createButton("test", buttonCb);
while (1)
…

Robert Hegner
- 9,014
- 7
- 62
- 98
2
votes
3 answers
Android - Read image using opencv
I tried reading an image from drawable folder. I am using eclipse ide. I ran the below code but the image was not loaded. The code is taken from here
Mat image = new Mat(new Size(500,500 ),CvType.CV_8U);// Change CvType as you need.
…

zakjma
- 2,030
- 12
- 40
- 81
2
votes
0 answers
Opencv Ruby Highgui - build gem "manually"
I've followed all of the steps from this question: Highgui and ruby
opencv was installed via brew, and rb_webcam was installed via gem install.
require "opencv"
require "rb_webcam"
capture = Webcam.new
The error…

Swills
- 153
- 2
- 16
1
vote
2 answers
OpenCV: Assertion failed " dst.data == widget->original_image->data.ptr in function 'cvImageWidgetSetImage' "
IMPORTANT: I fixed the problem. Solution at the end.
What do I try to achieve?
Display an image with OpenCV cv::imshow method. (imshow Documentation)
The image which is a 3x3 matrix is created like such:
Mat mask(3, 3, CV_32F, new float[9]{0, 1, 0,…

Philipp G.
- 31
- 6