Ask Your Question

kbarni's profile - activity

2019-01-18 19:39:23 -0500 received badge  Nice Answer (source)
2019-01-18 17:48:55 -0500 commented question openni_capture

...and what's the not working? Do you have an error message? Posting your code would also help.

2019-01-18 16:41:22 -0500 commented question Imread does not read the file

Please note that if(input) won't check if the file exists (only that the input variable was created)! Replace it with

2019-01-18 16:40:49 -0500 commented question Imread does not read the file

Please note that if(input) won't check if the file exists (only that the variable exists)! Replace it with if(input.is

2019-01-18 16:33:46 -0500 edited answer How can I check if the monitor is connected in Windows / Linux?

Here's the solution for Linux. You need to use the Xlib library: #include <X11/Xlib.h> int main(int argc, char *

2019-01-18 16:32:56 -0500 edited answer How can I check if the monitor is connected in Windows / Linux?

Here's the solution for Linux. You need to use the Xlib library: #include <X11/Xlib.h> int main(int argc, char *

2019-01-18 16:30:33 -0500 edited answer How can I check if the monitor is connected in Windows / Linux?

Here's the solution for Linux. You need to use the Xlib library: #include <X11/Xlib.h> int main(int argc, char *

2019-01-18 16:26:52 -0500 edited answer How can I check if the monitor is connected in Windows / Linux?

Here's the solution for Linux. You need to use the Xlib library: #include <X11/Xlib.h> int main(int argc, char *

2019-01-18 16:26:32 -0500 edited answer How can I check if the monitor is connected in Windows / Linux?

Here's the solution for Linux. You need to use the Xlib library: #include <X11/Xlib.h> int main(int argc, char *

2019-01-18 16:18:40 -0500 answered a question How can I check if the monitor is connected in Windows / Linux?

Here's the solution for Linux. You need to use the Xlib library: #include <X11/Xlib.h> int main(int argc, char *

2019-01-16 10:22:11 -0500 commented answer [Ubuntu 18.04] how add opencv built from source to QT applications

It doesn't matter. I put it generally before the SOURCES/HEADERS part.

2019-01-15 07:12:52 -0500 commented answer LUT for 16bit image

You probably need to debug it to see what's the problem. Check if LUT has correct values (e.g. lut_arr[32770] should be

2019-01-15 05:11:28 -0500 edited answer [Ubuntu 18.04] how add opencv built from source to QT applications

First, it's good to install the library. After make, do a sudo make install to copy the library files to the system fold

2019-01-15 05:10:04 -0500 answered a question [Ubuntu 18.04] how add opencv built from source to QT applications

First, it's good to install the library. After make, do a sudo make install to copy the library files to the system fold

2019-01-11 04:13:38 -0500 answered a question python: how to compute the color distribution of image in the paper with python and openCV

The simplest solution is to quantize first the image into 8 levels simply by dividing it by 32 (integer division). Then,

2019-01-10 05:11:54 -0500 answered a question LUT for 16bit image

You can do this operation "manually" (not using OpenCV funcions). You need a table corresponding an RGB color for each o

2018-12-24 06:12:52 -0500 answered a question How do I detect thinner/gray lines in a table?

I couldn't test the next ideas, but (at least some of them) they should work. Probably you'll have to experiment a bit t

2018-12-20 09:52:00 -0500 commented question Possible to Detect scribbles on an image?, Python

Quick idea: The "normal" text is printed, so it is very regular and really horizontal. In short it is easier to detect,

2018-12-15 17:09:19 -0500 commented question Converting from RGB to LAB yields strange results, but vice versa works fine

I didn't test your code, but I don't understand why are you transforming your image to float...? In float format, 0 is

2018-12-13 09:53:51 -0500 commented answer Expectation Maximization Prediction Issues

Please, don't make me repeat myself again!!!!! Texture descriptors (see above) are quite robust to varying light conditi

2018-12-12 01:36:27 -0500 commented question Opencv imshow is showing weird image

Try to check the data variable, to see if Gphoto captured a correct image... Probably the bug is during capture or conv

2018-12-11 11:48:35 -0500 commented answer Expectation Maximization Prediction Issues

No. Just used lighting invariant model. It really works on images taken in non-controlled conditions (in field); we didn

2018-12-10 03:25:58 -0500 commented answer Expectation Maximization Prediction Issues

As I said, color (esp. RGB color space) varies a lot with different conditions. You need a more robust descriptor, and

2018-12-09 14:07:33 -0500 answered a question Expectation Maximization Prediction Issues

Expectation maximization - as most machine learning methods - learn to make decisions from the training data. So unfortu

2018-12-09 11:29:00 -0500 commented answer Is Raspberry Pi 3A+ enough for multiple color based object detection ?

Well, OpenMV is not cheap, but if you add the raspberry pi, the camera and the arduino, the price will be close. That s

2018-12-09 07:21:57 -0500 answered a question Is Raspberry Pi 3A+ enough for multiple color based object detection ?

The Raspberry Pi hardware is strong enough to do real time color based object tracking. However AFAIK it can control on

2018-12-06 04:43:03 -0500 commented question Finding height difference with precision of 1mm using open cv

This is probably a precision problem before all, not an image processing issue. A small movement of the camera, or the r

2018-12-05 07:26:04 -0500 commented question OpenCV Development Enviroment

I agree QtCreator and Visual Studio as IDE of choice for C++ development. They have automatic code completion and integr

2018-12-03 05:00:53 -0500 answered a question OpenCV C++ detect line and coordinates and move it to the another image

First, debug your algorithm. Display the number of detected lines, eventually the coordinates. You'll see that your alg

2018-12-03 04:11:08 -0500 answered a question How to write/display video frame into /dev/fb1 with open('/dev/fb1', 'rb+')?

Other than the pixel format (as suggested by @berak) you also need to consider the size of the framebuffer. If you write

2018-11-29 07:57:52 -0500 commented answer OpenCV with point and shoot/DSLR

No, there are no python examples, because capturing video from a DLSR is not really possible. They are photo cameras, no

2018-11-28 06:39:09 -0500 answered a question Extract the contour of two images

If I understand you well (I'm still not sure about it), you need to do the following algorithm (this is just an outline)

2018-11-26 09:35:55 -0500 commented question Extract the contour of two images

I still don't understand... If you want to draw lines, use Paint, not OpenCV...

2018-11-26 06:53:32 -0500 commented answer Why do we need to compile opencv with cMake

Here you can find the precompiled OpenCV for Windows. So you can either use a prebuilt OpenCV or a library built by you

2018-11-26 04:53:47 -0500 answered a question Why do we need to compile opencv with cMake

CMake is not for compiling OpenCV, it's just a configuration utility. It generates the project files (SLN for Visual Stu

2018-11-26 04:29:03 -0500 answered a question Running OpenCV on an STM32F7? (Cortex M7)

Check this answer about a very similar FPU: http://answers.opencv.org/question/119854/opencv-integrate-in-mcu/#119907

2018-11-26 04:25:04 -0500 commented question Extract the contour of two images

I repeat my previous question: how did you get the second image with the yellow line? If you don't explain it, we won't

2018-11-19 08:55:46 -0500 commented answer Extract the contour of two images

I think he should use alpha blending instead of a weighted sum.

2018-11-19 08:35:47 -0500 commented question Extract the contour of two images

Blending these two images will give you only two overlapped squares, no yellow region. I don't know how you obtained t

2018-11-19 08:35:11 -0500 commented question Extract the contour of two images

Blending these two images will give you only two overlapped squares, no yellow region. I don't know how you obtained t

2018-11-16 14:58:11 -0500 answered a question OpenCV cv::cvtColor Error

Read the docs about the cvtColor function and its parameters! You certainly wanted to use cv2.COLOR_BGR2GRAY (as the jp

2018-11-16 05:51:30 -0500 commented question Get perimeter of pixels around centre pixel

I would second berak's suggestion about precalculating indices. As getting the list of points is time consuming, I would

2018-11-16 03:57:44 -0500 commented answer connectedComponentsWithStats Problem in Multithread

I'm in the same case; I added some explanations at the end of my answer. Unfortunately I didn't find any easier solution

2018-11-16 03:54:53 -0500 edited answer connectedComponentsWithStats Problem in Multithread

As connectedComponentsWithStats is already parallelized, it should run efficiently on your computer, no need to multithr

2018-11-16 03:25:29 -0500 answered a question connectedComponentsWithStats Problem in Multithread

As connectedComponentsWithStats is already parallelized, it should run efficiently on your computer, no need to multithr

2018-11-16 03:15:59 -0500 commented question connectedComponentsWithStats Problem in Multithread

@berak What is the solution when using parallelized OpenCV functions in different threads? I had the same problem a few

2018-11-14 05:08:33 -0500 commented question OpenCV 3 + Python 3 + Firewire Cameras

Did you try to debug the application? I think you can test more easily than us if the cameras are open and the frames ar

2018-11-12 05:19:12 -0500 answered a question what are the most widely used applications based on opencv using c++??

As the name suggests, OpenCV does Computer Vision, which is not often used in user applications. I think OpenCV is used

2018-11-09 07:15:35 -0500 commented question 3D convolution for Deep Neural Network (DNN) module

From my experience it's still the best to use the original framework for DNN. I think it's much faster (on GPU) and you

2018-11-09 07:08:38 -0500 commented question Run openCV application concurrently to main program

It isn't clear what do you want to do in the main thread, but multithreading is probably the way to go in this case.