Questions tagged as 'opencv'

1
answer

crop and center to square formed by points with OpenCV python

I was wanting to make a cut of a square formed by points and then center that cut on an image with opencv in python, I have a problem generating a square around the place where I have the most points. This is the original picture: And this...
asked by 19.09.2018 / 22:23
1
answer

How to capture the image of an ip camera with opencv c ++?

I have a system where I use opencv and c ++ for vehicle counting. Capturing the image from a video for example VideoCapture cap(video.pm4); works fine, but when you want to capture the image from an ip camera VideoCapture cap("http://ip_a...
asked by 02.11.2017 / 02:34
0
answers

Problems with CV :: Rectangle OpenCV

I have a problem when drawing a rectangle in a cv :: mat. I am making a communication between Unity and C ++ to generate an Android application. I use the unity Webcamtexture camera and I send the information to C ++ using the PInvoke method....
asked by 18.10.2017 / 10:24
0
answers

Android application in unity based on native OpenCV

I have a little doubt that I hope you can solve it. I want to create an android application in unity. The application consists of activating the camera of the device and seeing it on the screen. For this I want to base on a c ++ native code b...
asked by 25.09.2017 / 15:47
0
answers

Get coordinates of a pixel with OpenCV - Python [closed]

Good, I'm trying to get the coordinate in X (the column number) for the pixel / s that meet a given condition (example RGB = 255,0,0 ) and for a value of Y (row) given. Is there any way to do it in Python using OpenCV?     
asked by 10.07.2017 / 21:50
1
answer

Black video capture with openCv

According to a tutorial this code helps me to capture video, also pass it in gray scale. However, when I run it, the video display comes out in black and also the video that is saved has almost no weight (4kb). Could someone give me a hand...
asked by 24.07.2017 / 16:56
1
answer

Convert CImg image to cv :: Mat

I am using the CImg 2.1.3 library with OpenCV 3.3.0 so I need to convert a CImg object to Mat, in the examples of the libraría they use this code: cimg_library::CImg<unsigned char> *cvImgToCImg(cv::Mat &cvImg) { cimg_library::CIm...
asked by 06.11.2017 / 16:29
1
answer

Get the HSV value of a pixel

I am using Python and OpenCV and my intention is to take the HSV value of a pixel: Original image: HSV Image ( hsv ): hsv = cv2.cvtColor(image, cv2.COLOR_BGR2HSV) print(hsv[47,115]) >> [ 98 245 202] The value that re...
asked by 11.04.2017 / 16:52
0
answers

OpenCV histograms

I'm working with the OpenCv calcHist function. the question that I to this function I put a silhouette to me to detect the values within that silhouette. if my silhouette is inside the object (of a single color, orange), it only detects in the i...
asked by 26.10.2018 / 12:45
0
answers

Problems when wanting to play a video inside the same window where I create my canvas with python

Hello my program works, the only thing that I can not do, is that my video plays inside my canvas, something contrary to what I'm doing since my video when playing it opens in another window and I want it this is done within it, I do not know if...
asked by 26.10.2018 / 02:42