OpenCV

How to straight an image by selecting four points in an Image?

本小妞迷上赌 提交于 2021-02-16 05:11:58
问题 I want to straight an image by selecting four points in the image using getPerspectiveTransform() method of opencv in java. I know it can be done using with opencv in python: getPerspectiveTransform. If anyone used this to achieve image straightening ..please help. 回答1: There is perspective transformation which can be used to achieve quad to quad conversion. In OpenCV , there are mainly two methods to achieve getPerspectiveTransformation() and warpPerspective() method. Here is a sample code

How to straight an image by selecting four points in an Image?

試著忘記壹切 提交于 2021-02-16 05:09:42
问题 I want to straight an image by selecting four points in the image using getPerspectiveTransform() method of opencv in java. I know it can be done using with opencv in python: getPerspectiveTransform. If anyone used this to achieve image straightening ..please help. 回答1: There is perspective transformation which can be used to achieve quad to quad conversion. In OpenCV , there are mainly two methods to achieve getPerspectiveTransformation() and warpPerspective() method. Here is a sample code

深度学习检测视频马赛克

大憨熊 提交于 2021-02-16 03:43:56
数据集二分类 第一类1000张, 第二类600张 1. darknet + resnet50 Loss,训练出来测试的时候是NULL, 暂时不知道为什么, 将CUDA-10.0 换成 cuda-8.0 依然显示不出label Loss 也是3.8 2. darknet + alexnet Loss = 3.8 , 3. keras + inceptionV3   1.) OpenCV4.0 调用失败, 提示FusedBatchNorm is_learning = True   2) https://github.com/opencv/opencv/issues/14236 修改代码,修复bug后,出现下面bug DataType = DT_BOOL 不被识别      3) 需要更新到最新版的opencv 4. keras + inception_resnetV2 同上 6. tensorflow + slim + inceptionV4 验证集准确率90%以上 , 但是OpenCV4.0 调用失败, slim 居然把DecodeJpeg层都加到 pb模型里去了, 暂时不知道怎么修改模型   1) 修改为 opencv 报错 :   2)修改为     opencv ---in 'Mul'   3) 修改为     opencv --- 错误同上 4) modify as call

Program was not found .dll file

元气小坏坏 提交于 2021-02-15 07:49:06
问题 I try to follow https://docs.opencv.org/3.1.0/d4/d18/tutorial_sfm_scene_reconstruction.html this code but it can't build. I use opencv and extra-contrib version 3.4.5 I tried to add .dll to project but it not work. 'scenceRecon.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file. 'scenceRecon.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file. 'scenceRecon.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'.

Python Opencv live desktop screen process

纵饮孤独 提交于 2021-02-15 07:09:34
问题 I'm trying to process live screen. There is a game about catching fish. You have to click on fish when it is in circle. I think that I can process my screen with opencv, find fish and click on it with pyautogui. I did it but problem is program not fast enough to click. By the way game is a mini game in Metin 2 mmorpg. It is like a hack or bot but I just wondering if can I do that. Here is my code: import numpy as np import cv2 from PIL import ImageGrab import pyautogui import time while True:

Python Opencv live desktop screen process

旧街凉风 提交于 2021-02-15 07:08:20
问题 I'm trying to process live screen. There is a game about catching fish. You have to click on fish when it is in circle. I think that I can process my screen with opencv, find fish and click on it with pyautogui. I did it but problem is program not fast enough to click. By the way game is a mini game in Metin 2 mmorpg. It is like a hack or bot but I just wondering if can I do that. Here is my code: import numpy as np import cv2 from PIL import ImageGrab import pyautogui import time while True:

cv::imshow over SSH x11 too slow. alternatives?

纵然是瞬间 提交于 2021-02-15 07:07:53
问题 I have an application processing live frames from a camera that then spits out the result frame with imshow. When running on the local machine it all runs smoothly. However, I need to call this application over SSH and still see the video somehow(doesn't need to be over ssh). Currently the application just works over X11 forwarding, but the frame rates are abysmal and theres a huge delay. Is there a better way to do this that would minimize lag and latency? 回答1: I tried several methods of

C#使用Emgu CV来进行图片人脸检测

℡╲_俬逩灬. 提交于 2021-02-15 03:53:51
项目需求:某市级组织考试,在考试前需审核考生采集表中的考生照片是否合格,由于要审核的考生信息采集表有很多,原先进行的是手动人工审核,比较费时费力,审核的要求也很简单,并不判断考生是否是图片本人(身份验证有另外一套程序来进行),只是看考生采集表中考生头像是否是人脸(是否存在辨识不清楚,不是人脸)。因此提出需求,看是否能用程序来检测考生信息采集表中的照片,只需找出来疑似不是人脸的考生所在文档位置(pdf文档)即可,存疑的考生再由人工进行审核。 PDF文档中有很多页,每一页都是如图中的结构。 经过百度摸索,采用了C#+WPF+Spire.PDF+Emgu CV+MvvmLight来进行人脸判断的技术选型。 Emgu CV(https://sourceforge.net/projects/emgucv/files/emgucv/)是.NET平台下对OpenCV图像处理库的封装,也就是.NET版的 OpenCV的全称是:Open Source Computer Vision Library。OpenCV是一个基于(开源)发行的跨平台计算机视觉库,可以运行在Linux、Windows和Mac OS操作系统上。Emgu CV官方带的有训练过的人脸识别模板,可以直接使用。 Spire.PDF可以来读取PDF文档,同时可以读取到PDF文档中的图片。

CMake Error at CMakeLists.txt CMAKE_PREFIX_PATH

核能气质少年 提交于 2021-02-14 22:54:54
问题 I have downloaded the source code of the face-analysis SDK from http://face.ci2cv.net/. Now I am trying to get it running. I downloaded all the necessary software and followed the installation instructions. When I try to execute cmake [options] .. I get an error. CMake Error at CMakeLists.txt:21(find_package): Could not find a package configuration file provided by "OpenCV" with any of the following names: OpenCVConfig.cmake opencv-comfig.cmake Add the installation prefix of "OpenCV" to CMAKE

CMake Error at CMakeLists.txt CMAKE_PREFIX_PATH

[亡魂溺海] 提交于 2021-02-14 22:48:22
问题 I have downloaded the source code of the face-analysis SDK from http://face.ci2cv.net/. Now I am trying to get it running. I downloaded all the necessary software and followed the installation instructions. When I try to execute cmake [options] .. I get an error. CMake Error at CMakeLists.txt:21(find_package): Could not find a package configuration file provided by "OpenCV" with any of the following names: OpenCVConfig.cmake opencv-comfig.cmake Add the installation prefix of "OpenCV" to CMAKE