tagged [opencv]

Convert Mat to Array/Vector in OpenCV

Convert Mat to Array/Vector in OpenCV I am novice in OpenCV. Recently, I have troubles finding OpenCV functions to convert from Mat to Array. I researched with .ptr and .at methods available in OpenCV...

31 Oct at 19:3

How to lock autofocus

How to lock autofocus Is there a way to prevent auto-focus from focusing, using any of the "standard" libraries, such as OpenCV, EmGU, DirectShow, etc? I want auto-focus to find the optimal focus, the...

9 May at 07:28

Image is not displaying in Google Colab while using imshow()

Image is not displaying in Google Colab while using imshow() I am working on a project which requires functions from OpenCV to plot images. I am trying to display image using the below code in Google ...

openCV video saving in python

openCV video saving in python I am trying to save the video but it's not working. I followed the instructions from the openCV documentation. ``` import numpy as np import cv2 cap = cv2.VideoCapture(0)...

28 Mar at 14:16

DLL load failed error when importing cv2

DLL load failed error when importing cv2 I have installed opencv on my windows machine using python 3.6 without any issues, using: but when I try to import cv2 I get the following error I have seen [t...

9 Jul at 18:19

cv2.imshow() function is opening a window that always says not responding - python opencv

cv2.imshow() function is opening a window that always says not responding - python opencv I am trying to run a very simple program. To open and jpg file and display it using the opencv library for pyt...

8 Mar at 20:40

How to view TV Tuner component input with OpenCV?

How to view TV Tuner component input with OpenCV? I'm trying to use my tvtuner instead of a webcam with opencv. The problem is that by default cvCaptureFromCAM(0) gives me the tv channel of the tv tun...

4 Mar at 20:50

Differences between AForge and OpenCV

Differences between AForge and OpenCV I am just learning about computer vision and C#. It seems like two prominent image processing libraries are [OpenCV](http://opencv.willowgarage.com/wiki/) and [AF...

14 Apr at 20:28

Error (-215) size.width>0 && size.height>0 occurred when attempting to display an image using OpenCV

Error (-215) size.width>0 && size.height>0 occurred when attempting to display an image using OpenCV I am trying to run a simple program that reads an image from OpenCV. However, I am getting this err...

24 Apr at 11:53

Python: how to capture image from webcam on click using OpenCV

Python: how to capture image from webcam on click using OpenCV I want to capture and save a number of images from my webcam using OpenCV. This is my code currently: The problem with this is that I do ...

4 Jan at 09:53

Creating AVI files in OpenCV

Creating AVI files in OpenCV I have been trying to create an application using OpenCV and Visual Studio 2008, to capture images from a webcam, apply a filter to them, and then write them to an AVI fil...

16 Jul at 11:39

How to write text on a image in windows using python opencv2

How to write text on a image in windows using python opencv2 I want to put some text on an Image. I am writing the code as: It gives ERROR, saying 'module' object has no attribute 'CV_FONT_HERSHEY_SIM...

28 Mar at 14:19

Pycharm/Python OpenCV and CV2 install error

Pycharm/Python OpenCV and CV2 install error I've been trying to install both OpenCV and cv2 from both Pycharm and from the terminal as suggested using: but I'm getting the following error for them: ``...

12 Jun at 15:54

.Net (dotNet) wrappers for OpenCV?

.Net (dotNet) wrappers for OpenCV? I've seen there are a few of them. [opencvdotnet](http://code.google.com/p/opencvdotnet/), [SharperCV](http://www.cs.ru.ac.za/research/groups/SharperCV/), [EmguCV](h...

11 Jun at 20:53

Type initialization exception

Type initialization exception I created imageHolder class: I

31 Aug at 07:59

How can I convert Mat to Bitmap using OpenCVSharp?

How can I convert Mat to Bitmap using OpenCVSharp? First, I tried this, [](https://i.stack.imgur.com/xbY1M.png) So, then, I tried this, ``` public static Bitmap MatToBitmap(Mat mat) { mat.Conver...

5 Sep at 11:45

How do I access the pixels of an image using OpenCV-Python?

How do I access the pixels of an image using OpenCV-Python? I want to know how to loop through all pixels of an image. I tried this: It prints a

29 May at 16:32

Difference in output with waitKey(0) and waitKey(1)

Difference in output with waitKey(0) and waitKey(1) I've just begun using the OpenCV library for Python and came across something I didn't understand. When I use `cv2.waitKey(1)`, I get a continuous l

28 Aug at 12:48

How do I equalize contrast & brightness of images using opencv?

How do I equalize contrast & brightness of images using opencv? I've got an image that I've scanned, but the white paper is not white on the screen. Is there a way to equalize the contract/brightness ...

12 May at 05:31

Why is Visual Studio 2010 not able to find/open PDB files?

Why is Visual Studio 2010 not able to find/open PDB files? I am trying to use OpenCV in VS 2010. I am an amateur, and I am learning first steps from the OpenCV wiki. However, when trying to debug my p...

Are .Net OpenCV wrappers worth using?

Are .Net OpenCV wrappers worth using? So we have this Image processing course at the university and we'll be using OpenCV extensively. Problem is, OpenCV uses C++ but I'm much more fluent in C# than C...

23 May at 10:29

Saving an image in OpenCV

Saving an image in OpenCV I am new to OpenCV, and trying to capture an image, and then save it to a file. I am posting the code for your reference, below. The jpg file is being saved, but it is black....

15 Jan at 06:15

How to crop an image in OpenCV using Python

How to crop an image in OpenCV using Python How can I crop images, like I've done before in PIL, using OpenCV. Working example on PIL But how I can do it on OpenCV? This is what I tried: ``` im = cv.i...

16 Feb at 05:13

Converting cv::Mat to IplImage*

Converting cv::Mat to IplImage* The documentation on this seems incredibly spotty. I've basically got an empty array of IplImage*s (IplImage** imageArray) and I'm calling a function to import an array...

12 Jan at 00:20

People Counting System

People Counting System I want to develop a "People Counting System" using OpenCV (or Emgu CV). Please guide me on how to implement or lead me to some examples or open source projects. (I have done som...

20 Aug at 07:13