highgui

Android Studio OpenCV NDK: Unspecified error, The function is not implemented

 ̄綄美尐妖づ 提交于 2021-02-16 20:46:09
问题 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 Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvShowImage, file /Volumes/Linux/builds/master_pack-android/opencv/modules/highgui/src/window.cpp, line 545". I found

OpenCV4 error: ‘CV_CAP_PROP_FRAME_WIDTH’ was not declared in this scope

一个人想着一个人 提交于 2020-08-07 07:53:44
问题 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 the module opencv2/highgui.hpp in my project, I get problems like below. This seems to be an issue caused by highgui.hpp when I followed this link. /home/arun/Documents/AutonomousLaneDetection/app/main.cpp: In function ‘int main(int, char**)’:

'LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

北慕城南 提交于 2019-12-24 11:44:13
问题 I am using visual studio 2012.i got the error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'highgui248d.lib(opencv_highgui248d.dll)' while building a win32 console application. I have tried modifying the property to match with my open_cv application requirement. 回答1: Here's the answer for your issue. Probably you need to change the platform in Build configuration manager https://stackoverflow.com/a/4364020/3724463 回答2: I found the solution to this annoying problem

Android - Template Matching

柔情痞子 提交于 2019-12-14 03:14:06
问题 I want to create an android application. Program steps are below Open camera Get frames Select a frame by touch screen Load template image under drawable folder Apply template matching Show result The mat object of template image is not empty. I check it. When I run this code, I get below error message. Code : public void onCameraViewStarted(int width, int height) { mRgba = new Mat(height, width, CvType.CV_8UC4); temp = new Mat(height, width, CvType.CV_8UC4); } public boolean onTouch(View v,

OpenCV: Assertion failed “ dst.data == widget->original_image->data.ptr in function 'cvImageWidgetSetImage' ”

早过忘川 提交于 2019-12-13 02:34:57
问题 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, 1, -4, 1, 0, 1, 0}); To display the image I call imshow("mask", mask); What is my problem? Like I mentioned in the title there is an exception thrown while trying to display the image. Complete Error Message: terminate called after throwing an

OpenCV/OpenCV3计算机视觉软件支持库和最新资源

梦想与她 提交于 2019-12-09 10:05:21
OpenCV近几年随着视频设备的广泛使用,发展的非常之快。中国的大部分视频应用几乎都用了其中的代码。但是由于各种原因,OpenCV的资料却比较杂乱,本人基于学习和使用和一些经验体会,整理如下,供参考: 1、OpenCV简介 OpenCV( http://opencv.org )最初是Intel®开发的一个计算机视觉软件库,现在开源后已经成为使用广泛、发展快速的通用计算机视觉库,很多车牌识别、人脸认证等应用大部分都是基于OpenCV开发的。 2、OpenCV支持能力 OpenCV是实时的图像处理处理框架(不同于其它的后台图像处理软件),由一系列C函数和C++类构成,实现了图像处理和计算机视觉方面的很多通用算法,包括视频读写、图形细化、边缘检测、图像变换、模式识别、人脸检测等经典算法。OpenCV3进一步完善和规范了接口,还加入了光流等现代图像算法。OpenCV既能直接用于生产性工作中,也是一个极佳的算法研究和试验场地,而且通过一个开放的框架,可以将成熟的算法直接整合到应用工作之中,并与业界的专家和工业部分进行共享和相互促进。 OpenCV支持很多种设备和操作系统除了台式机、工作站外,还可以运行在iOS和Android以及各种嵌入式Linux设备上,在机器视觉、人工智能、自动驾驶、无人机、智能设备等领域都有广泛的应用。 3、OpenCV开发与接口 OpenCV支持多种开发接口

How to get Mat with a drawable input in Android using OpenCV

笑着哭i 提交于 2019-11-30 13:57:32
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 I can only read them by using their id like R.drawable.img1. How could I achieve what I want? This should do Mat img = Utils.loadResource(context, refrenceimgID, Highgui.CV_LOAD_IMAGE_COLOR); Imgproc.cvtColor(img, gryimg, Imgproc.COLOR_RGB2BGRA); 来源: https://stackoverflow.com/questions/20184215/how-to-get-mat-with-a-drawable-input-in-android-using

How to get Mat with a drawable input in Android using OpenCV

三世轮回 提交于 2019-11-29 18:44:43
问题 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 I can only read them by using their id like R.drawable.img1. How could I achieve what I want? 回答1: This should do Mat img = Utils.loadResource(context, refrenceimgID, Highgui.CV_LOAD_IMAGE_COLOR); Imgproc.cvtColor(img, gryimg, Imgproc.COLOR_RGB2BGRA

cv::imshow sometimes is very slow

一笑奈何 提交于 2019-11-29 14:32:41
问题 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() { startTimeMeasure(); cv::imshow("output",image); evaluateTimeMeasure(); } image is a member variable and the highgui window is created somewhere else. Time measurement works with boost::posix_time ptime and time_duration . cvStartWindowThread(); was called. The