Ask Your Question

tobix10's profile - activity

2020-03-10 12:05:20 -0600 received badge  Notable Question (source)
2019-05-23 10:38:13 -0600 edited question Get foreground mask without updating model

Get foreground mask without updating model I want to write an algorithm that detects camera tampering e.g blocking the v

2019-05-23 10:36:14 -0600 asked a question Get foreground mask without updating model

Get foreground mask without updating model I want to write an algorithm that detects camera tampering e.g blocking the v

2019-04-15 10:14:30 -0600 commented answer Faster RCNN no results

Ok, I see that there is a problem with class index. Person is a first class in a file, but 1 is subtracted from index in

2019-04-15 10:13:16 -0600 commented answer Faster RCNN no results

Ok, I see that there is a problem with class index. Person is a first class in a file, but 1 is subtracted from it in th

2019-04-15 08:32:32 -0600 commented answer Faster RCNN no results

Nice thanks, but it seems that this network doesn't output classes. Is this format [batchId, classId, confidence, left,

2019-04-15 03:38:38 -0600 commented question Faster RCNN no results

I use the model that is linked. I think that input is not a problem here e.g for such image it doesn't work either. Yolo

2019-04-15 03:36:03 -0600 answered a question OpenCV Yolo Tiny Slow

Do you have the same results for original yolov3-tiny from https://pjreddie.com/darknet/yolo/ ? I am experimenting with

2019-04-15 03:29:56 -0600 commented question Faster RCNN no results

I use the model that is linked. I think that input is not a problem here e.g for such image it doesn't work either.

2019-04-12 07:38:13 -0600 edited question Faster RCNN no results

Faster RCNN no results I am trying to run Faster-RCNN Inception v2 model in OpenCV 3.4.6 (c++) using object_detection.cp

2019-04-12 07:37:57 -0600 commented question Faster RCNN no results

That is the name of the file, because I tested yolo first. Those are coco class names. It doesn't change anything, those

2019-04-12 06:47:09 -0600 edited question Faster RCNN no results

Faster RCNN no results I am trying to run Faster-RCNN Inception v2 model in OpenCV 3.4.6 (c++) using object_detection.cp

2019-04-12 06:46:34 -0600 edited question Faster RCNN no results

Faster RCNN no results I am trying to run Faster-RCNN Inception v2 model in OpenCV 3.4.6 (c++) using object_detection.cp

2019-04-12 06:44:42 -0600 asked a question Faster RCNN no results

Faster RCNN no results I am trying to run Faster-RCNN Inception v2 model (https://github.com/opencv/opencv/wiki/TensorFl

2019-04-04 03:32:26 -0600 received badge  Organizer (source)
2019-04-03 03:22:49 -0600 received badge  Enthusiast
2019-04-02 06:52:00 -0600 asked a question Camera view is blocked, uniform image

Camera view is blocked, uniform image Hi, how would you approach a problem of detecting if camera view is blocked? Simp

2019-03-28 09:55:51 -0600 commented question Find significant differences in image

@supra56 Maybe it is, but on ARM I have a few FPS (it is paired with some morph op and find contours). At the beginning

2019-03-28 09:51:38 -0600 commented question Find significant differences in image

Maybe it is, but on ARM I have a few FPS (it is paired with some morph op and find contours). At the beginning of pipeli

2019-03-28 08:43:24 -0600 edited question Find significant differences in image

Find significant differences in image Hi, I'd like to make background segmentation as a first step in my processing pipe

2019-03-28 08:42:30 -0600 edited question Find significant differences in image

Find significant differences in image Hi, I'd like to make background segmentation as a first step in my processing pipe

2019-03-28 08:41:22 -0600 edited question Find significant differences in image

Find significant differences in image Hi, I'd like to make background segmentation as a first step in my processing pipe

2019-03-28 08:36:14 -0600 asked a question Find significant differences in image

Find significant differences in image Hi, I'd like to make background segmentation as a first step in my processing pipe

2018-11-04 05:13:50 -0600 commented question Performance analysis

Yeah, but this is a profiler. I still have to write some code. I am not an expert in image processing and OpenCV. I woul

2018-11-02 18:17:38 -0600 received badge  Student (source)
2018-11-02 18:14:18 -0600 asked a question Performance analysis

Performance analysis I would like to prepare a test which will give me an exact answer if particular CPU (ARM) is capabl

2018-11-02 17:59:13 -0600 received badge  Popular Question (source)
2018-10-27 14:55:20 -0600 asked a question HOG groupRectangles

HOG groupRectangles I was searching for some information about finalThreshold parameter in detectMutliScale and found th

2016-07-25 10:41:51 -0600 received badge  Popular Question (source)
2013-12-18 12:01:02 -0600 asked a question DFT and IDFT of contour, Fourier descriptors

Hello, I'd like to know if my code is good. I want to get Fourier descriptors from contour(shape). Correct me if I am wrong: Fourier descriptors = DFT output?

I'd also want transform, scale and rotation invariance. To get this I reject F[0], divide all F[i]/F[1] and use only magnitudes |F[i]|, correct?

Here is the code(java);

Imgproc.findContours(image, contours, hierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_NONE); 
...
Point[] arr = contours.get(maxIdx).toArray();
Mat pointsX = new Mat(new Size(1,128), CvType.CV_32FC1);
Mat pointsY = new Mat(new Size(1,128), CvType.CV_32FC1);    
int delta = arr.length / 128;             // 128 points from contour
for(int i = 0, j = 0; i < arr.length && j < 128; i += delta, ++j) {
   pointsX.put(j, 0, arr[i].x); 
   pointsY.put(j, 0, arr[i].y); 
}   

List<Mat> planes = new ArrayList<Mat>();
planes.add(pointsX);
planes.add(pointsY);
Mat complexI = new Mat();
Core.merge(planes, complexI);                   
Core.dft(complexI, complexI);               

// scale invariant Fi = Fi / |F1|
double Re = complexI.get(1,0)[0];
double Im = complexI.get(1,0)[1];
double magF1 = Math.sqrt(Re*Re + Im*Im);
for(int i = 2; i < complexI.rows(); ++i) {
   double[] newVal = new double[2];
   newVal[0] = complexI.get(i, 0)[0] / magF1;
   newVal[1] = complexI.get(i, 0)[1] / magF1;
   complexI.put(i, 0, newVal);
}
// rotation invariant |Fi|
Core.split(complexI, planes);            // planes[0] = Re(DFT(I), planes[1] = Im(DFT(I))
Mat dftMag = new Mat();
Core.magnitude(planes.get(0), planes.get(1), dftMag);

I don't know why but after I did inverse dft(just after forward dft) I got big values such (30000,4000).

Mat idft = new Mat(new Size(1,128), CvType.CV_32FC2);
Core.dft(complexI, idft, Core.DFT_INVERSE, 0);

Is this good approach? Did I miss something here?

2013-12-11 12:10:48 -0600 received badge  Supporter (source)
2013-12-11 12:10:46 -0600 received badge  Scholar (source)
2013-12-10 10:06:21 -0600 commented question Resize boundaries of object

Ok. Post edited.

2013-12-10 03:54:41 -0600 asked a question Resize boundaries of object

I have object's bounding rect and contour. I want to use a contour as a mask to enlarge boundaries of this object to the size of bounding rect. In other words if object with green boundary pixels fitted in rectangle is on black background I want to make black pixels green.

How to do that?

image description

This is image after thresholding and applying findContours. I want to use this contour as a mask to extract leaf from original image and expand its boundaries to fill rectangle. I need to perform texture calculations and don't want to have black pixels around.

2013-11-24 11:23:04 -0600 received badge  Editor (source)
2013-11-24 11:21:48 -0600 asked a question Choosing neighbours, window, matrix size in GLCM

Hello, I'm going to implement GLCM to retrieve texture features of leaves. I've already read about algorithm and it is clear to me, but I don't know:

1) How to choose the best offset of neighbours(distance and direction)?

In one text I've read that too large glcm matrix may give worse results if image has less gray levels(many zeroes in matrix). Author gives advice to rescale data to 4 bit.

2) Is it worth to do that? Will image not lost many information?

2a) Can I do rescaling in opencv with some built-in function?

Despite of above, I intended to take gray scale image and calculate GLCM on entire image, but there is also a concept of window not clear for me, so:

3) How the algoritm will lool like with using window of particular size?

Please take into account tha performance is important to me, because this will be used in android app.

4) Is there anything else important about GLCM on what should I pay attention?

Thanks in advance.