Ask Your Question

Sowmya's profile - activity

2015-09-02 00:29:11 -0500 asked a question Video Operations

Hi All, I have a large collection of videos in mov format. The video files are very huge. I want to do these operations on all videos at a time using any application on Linux/Mac 1. Reducing size of video by maintaining the quality of audio and video 2. Separate audio from video and save as wav and wmv formats specifically. 3. Reduce size of videos to a specific frame size.

2015-07-08 05:34:22 -0500 asked a question Motion 2D software

Hi,

Did anyone use Motion2D software to estimate 2D parametric motion models in an image sequence?

I am using this Motion 2D to estimate the velocity vector at a point between two adjacent frames. I am unable to track any specified point in a video.

I need some help if anyone has worked in this direction.

2015-05-28 03:48:11 -0500 commented question Multi state particle filter

void sortParticles(particle* pArr, int partn) { particle temp; bool swapped; do { swapped = false; for(int p=1; p < partn; p++) { temp = pArr[p]; if(pArr[p].w > pArr[p-1].w) { pArr[p] = pArr[p-1]; pArr[p-1] = temp; swapped = true; } } } while(swapped); }

2015-05-28 03:47:12 -0500 commented question Multi state particle filter

//select the particle with greater weight particle getBest(particle* pArr,int partn) { particle part; part = pArr[0]; for(int k=1; k < partn; k++) { if(pArr[k].w > part.w) { part = pArr[k]; } } return part; } particle* resampleParticles(particle* pArr,int partn) { int pNum; int m=0,i;

particle* newArr = (particle*)malloc(sizeof(particle)*partn);
sortParticles(pArr,partn);
    int counter=partn/15;
int temp=0;

int temp1=0;
for(int p=0;p<partn;p++)
{
    temp1 = counter;
    while(counter!=0)
    {
        newArr[temp] = pArr[p];
        temp = temp + 1;
        counter = counter - 1;
        if(temp == partn)
            break;
    }
    if(temp == partn)
        break;
    counter = temp1 - 1;
    if(counter <= 0)
        counter = 1;
}

return newArr}

2015-05-28 03:46:20 -0500 commented question Multi state particle filter

oArr[p].x = pArr[p].x ; oArr[p].y = pArr[p].y; oArr[p].scale = pArr[p].scale; oArr[p].dx=pArr[p].dx; oArr[p].dy=pArr[p].dy; oArr[p].ds=pArr[p].ds; //assign new position and scale

    pArr[p].x  = nx;
    pArr[p].y  = ny;
    pArr[p].scale = ns;
    pArr[p].dx=new_dx;
    pArr[p].dy=new_dy;
    pArr[p].ds=new_ds;

    roi = new Rect(nx - pArr[p].width*ns/2,
                   ny - pArr[p].height*ns/2,
                   pArr[p].width*ns,
                   pArr[p].height*ns);
    partHist = getHistogramHSV(hsvIm(*roi));



    pArr[p].w = (1-compareHist(partHist,refHist,CV_COMP_BHATTACHARYYA));
    totalW   += pArr[p].w;
}
//normalize weights
for(int p=0; p < partn; p++) 
{
    pArr[p].w = pArr[p].w/totalW;
}

}

2015-05-28 03:45:28 -0500 commented question Multi state particle filter

for (int p = 0; p < partn; p++) {

    float u1,u2,u3,u4,u5,u6,n1,n2,n3,n4,probability,scale,rCorr,gCorr,bCorr,likelihood;
    u1 = ((float)rand())/RAND_MAX;
    u2 = ((float)rand())/RAND_MAX;
    u3 = ((float)rand())/RAND_MAX;
    u4 = ((float)rand())/RAND_MAX;
    u5 = ((float)rand())/RAND_MAX;
    u6 = ((float)rand())/RAND_MAX;
    //get normally distributed random numbers using box-muller transform (has mean 0 and std 1)
    n1 = sqrt(-2*log(u1)) * cos(2*3.14159265359*u2);
    n2 = sqrt(-2*log(u1)) * sin(2*3.14159265359*u2);
    n3 = sqrt(-2*log(u3)) * sin(2*3.14159265359*u4);

    n1=n1*pArr[p].width * 0.15;
    n1+=pArr[p].x;

    n2=n2*pArr[p].height * 0.12;
    n2+=pArr[p].y;

        n3=n3*pArr[p].scale*0.04;
    n3+=pArr[p].scale;
2015-05-28 03:03:32 -0500 commented question Multi state particle filter

I will try to put in words. 1. A particle filter which is used for object tracking has a state vector of the form (x,y,width,height) where x and y denotes the position of the object and width and height defines the object size 2. Tracking happens by finding the observation model in each frame 3. Now I want to modify the particle filter according to this paper http://www.idiap.ch/~odobez/publicati... so that I can increase the pose recognition accuracy.

According to this paper, the state vector is of the form (x,y,width,height,pose). I wanted to implement this to estimate the pose of a person.

All that I have is a c++ code for object tracking using particle filter. Now I wanted it to modify for this problem.

2015-05-27 03:45:09 -0500 asked a question Multi state particle filter

Hi, I have a particle filter with state vector as(xposition, yposiiton, width). I want to modify the particle filter to a multistate particle filter where the state vector is (xposition, yposiiton, width,pose angle). Here the xposition, yposition and width are continuous variables and pose angle is a discrete variable.

How can I modify the code to make the state vector a 4D and do the tracking?

2015-04-21 02:58:42 -0500 asked a question Head Tracking and Pose Estimation

Hi, Can anyone help me with head tracking and pose estimation in OPENCV.

I want to do head tracking with a Particle filter as described in http://citeseerx.ist.psu.edu/viewdoc/...

and do the pose estimation by computing texture and colour features.

2015-03-26 01:25:06 -0500 asked a question Annotating pedestrians in a video

Hi,

I am looking at a object detection task. And I want to give the ground truth by annotating pedestrians in a video. I read information about Caltech Benchmark datasets and Piotr's Matlab Toolbox for annotating. But the Piotr's toolbox is used for behaviour annotation.

And I looked at ViPER -GT also. http://viper-toolkit.sourceforge.net/... http://viper-toolkit.sourceforge.net/...

After downloading the ViPER source code, I am not able to understand how to start annotating.

Can anyone suggest how to annotate in a video?

2015-03-02 09:55:11 -0500 asked a question Images to test different segmentation algorithms

Hi

I want to know the disadvantages and advantages of different segmentation algorithms like

Otsu's multiple thresholds, kmeans, Expectation maximization, mean shift algorithm, normalized cuts etc.

Can anyone share me the source where I can find all the information about these segmentations. And also I want proper images to demonstrate the advantages and disadvantages of one algorithm with another

2015-03-02 09:45:11 -0500 asked a question Images to test different segmentation algorithms

Hi

I want to know the disadvantages and advantages of different segmentation algorithms like

Otsu's multiple thresholds, kmeans, Expectation maximization, mean shift algorithm, normalized cuts etc.

Can anyone share me the source where I can find all the information about these segmentations. And also I want proper images to demonstrate the advantages and disadvantages of one algorithm with another

2015-02-04 00:42:40 -0500 received badge  Enthusiast
2015-02-03 23:16:13 -0500 asked a question Latent svm implementation in opencv

Hi all,

Did anyone try implementing Latent SVM without using the built in libraries in opencv for object detection?

Please let me know how to start implementing this.

2015-02-03 23:14:46 -0500 asked a question Latent SVM omplementation in opencv

Hi all,

Did anyone try implementing Latent SVM without using the built in libraries in opencv for object detection?

Please let me know how to start implementing this.

2015-01-26 23:59:10 -0500 commented question Deformable Part Based model in opencv

And also when I work with these models https://github.com/Itseez/opencv_extr...

there are many misdetections. It is not working so good as the matlab code from vocrelease5.

2015-01-26 23:51:21 -0500 commented question Deformable Part Based model in opencv

Thanks for reply. I working with Opencv24x.

2015-01-26 23:50:41 -0500 commented question Deformable Part Based model in opencv

Do you know how to generate these models?

2015-01-25 08:05:08 -0500 asked a question Deformable Part Based model in opencv

Hi all,

When I see the opencv implementation for Latent SVM, it uses pretrained models for object detection. But in the opencv samples only cat.xml file is present. How do I generate these xml file for people?

I tried converting the mat files to xml files from the voc-release5. But the opencv does not accept the xml files in that format. Can anyone help me out with this?

2015-01-08 10:23:18 -0500 received badge  Student (source)
2015-01-08 10:22:59 -0500 asked a question Running Deformable part based model for pedestrian detection in opencv

Hi,

Can anyone help me with the code in the link below https://github.com/wg-perception/Part....

I am trying to do pedestrian detection using Part Based Models. When I look into the matlab folder, there is a readme file which gives the steps to compile. For training, it says to run "training_demo.m" file for which the annotated pedestrian data set has to be given as input. But I am not able to understand where the annotated file list has to be given.

Please help me to run this code or suggest me with a easy code.

2014-11-20 17:57:52 -0500 answered a question Face recognition with opencv 2.4.x accuracy

Hi,

Even I am working on the same problem. The link that you are using always gives a incorrect label. So I tried using the code from this website http://www.shervinemami.info/faceRecognition.html This gives 100% accuracy for offline training and testing because it does all preprocessing.

I have one question to ask. How to did you get the name displayed for you and pitt(for ex) in the video? I wanted to know how tagging is done? I am uable to tag people in videos. Can you please share your code?

2014-11-20 17:46:45 -0500 asked a question Tagging people in videos in opencv.

Hi all, I am looking for a problem of recognizing known people in a video. I did according to these links. http://www.shervinemami.info/faceRecognition.html http://docs.opencv.org/trunk/modules/contrib/doc/facerec/tutorial/facerec_video_recognition.html

But the problem with the first link is that, always it shows the same name to everyone. And I tried under several illumination conditions. but I failed.

And with the link, I dont know how to tag people with their names. And it always shows a wrong label.

Can anyone help me with these two problems?

2014-11-14 03:07:57 -0500 commented answer How to tag persons in an image in OpenCV?

Thanks for your suggestion. I tried the following code for face recognition in videos http://docs.opencv.org/trunk/modules/contrib/doc/facerec/tutorial/facerec_video_recognition.html And I made necessary changes according to your answer to display names in the program. But I failed to do it. When I say this int predicted = model->predict(askingImg); cout<<names[prediction]<<endl; nothing is displayed in the command window.

Please let me know if there is a way to tag people in a video.

2014-11-14 03:02:02 -0500 received badge  Scholar (source)
2014-11-14 03:01:59 -0500 received badge  Supporter (source)
2014-11-14 03:01:28 -0500 answered a question How to tag persons in an image in OpenCV?

I actually tried with your answer. But the name of the person is not getting displayed in the video. I am now trying to display names of person in a video. For that I am using the code from the following link http://docs.opencv.org/trunk/modules/contrib/doc/facerec/tutorial/facerec_video_recognition.html

and I tried your answer to display the names of the persons in the video. But it is failing. Below is the code //g++ -ggdb pkg-config --cflags opencv -o basename online_faceRec_video.cpp .cpp online_faceRec_video.cpp pkg-config --libs opencv

/* * Copyright (c) 2011. Philipp Wagner <bytefish[at]gmx[dot]de>. * Released to public domain under terms of the BSD Simplified license.


  • Redistribution and use in source and binary forms, with or without
  • modification, are permitted provided that the following conditions are met:
    • Redistributions of source code must retain the above copyright
  • notice, this list of conditions and the following disclaimer.
    • Redistributions in binary form must reproduce the above copyright
  • notice, this list of conditions and the following disclaimer in the
  • documentation and/or other materials provided with the distribution.
    • Neither the name of the organization nor the names of its contributors
  • may be used to endorse or promote products derived from this software
  • without specific prior written permission.

include "/usr/local/include/opencv2/core/core.hpp"

include "/usr/local/include/opencv2/contrib/contrib.hpp"

include "/usr/local/include/opencv2/highgui/highgui.hpp"

include "/usr/local/include/opencv2/imgproc/imgproc.hpp"

include "/usr/local/include/opencv2/objdetect/objdetect.hpp"

include <iostream>

include <fstream>

include <sstream>

using namespace cv; //using namespace cv::face; using namespace std;

static void read_csv(const string& filename, vector<mat>& images, vector<int>& labels, vector<string>& names, char separator = ';') { std::ifstream file(filename.c_str(), ifstream::in); if (!file) { string error_message = "No valid input file was given, please check the given filename."; CV_Error(CV_StsBadArg, error_message); } string line, path, classlabel,classnames; while (getline(file, line)) { stringstream liness(line); getline(liness, path, separator); getline(liness, classlabel); getline(liness, classnames); if(!path.empty() && !classlabel.empty()) { images.push_back(imread(path, 0)); labels.push_back(atoi(classlabel.c_str())); names.push_back(classnames.c_str()); } } } int main(int argc, const char *argv[]) { // Check for valid command line arguments, print usage // if no arguments were given. if (argc != 4) { cout << "usage: " << argv[0] << " </path> </path> </path>" << endl; cout << "\t </path> -- Path to the Haar Cascade for face detection." << endl; cout << "\t </path> -- Path to the CSV file with the face database." << endl; cout << "\t <device id=""> -- The webcam device id to grab frames from." << endl; exit(1); } // Get the path to your CSV: string fn_haar = string(argv[1]); string fn_csv = string(argv[2]); int deviceId = atoi(argv[3]); // These vectors hold the images and corresponding labels: vector<mat> images; vector<int> labels; vector<string> names;

try {
    read_csv(fn_csv, images, labels,names);
} catch (cv::Exception& e) {
    cerr << "Error opening file \"" << fn_csv << "\". Reason: " << e.msg << endl;        
    exit(1);
}

int im_width = images[0].cols;
int im_height = images[0].rows;
Ptr<FaceRecognizer> model = createFisherFaceRecognizer ...
(more)
2014-11-10 06:21:53 -0500 asked a question Online face recogntion and tagging in opencv

Hi,

I am following the code in this link for online face recognition. http://www.shervinemami.info/faceRecognition.html But I am facing a problem

  1. I tried doing the training for many persons, one person at a time by giving a different name. But when I do testing, it displays same name for all people.

Can anyone help me?

Actually I want to tag known people in a video.(known people - whom i have trained)

2014-11-10 05:57:03 -0500 asked a question Online Face recogniton and tagging in opencv

Hi, For online face recognition, I used the following link. http://www.shervinemami.info/faceRecognition.html

But the problem I am facing is, 1. How do I start online training for more than one person? 2. I tried training one person after another by giving different names. But when I start testing, if the two persons come at a time in video, it is displaying the same name for both persons in the video.

Can anyone help me? I am not able to move ahead after this.

My ultimate goal is to recognize people in a video and tag them with their names.

2014-11-10 05:53:59 -0500 asked a question Face recognition and tagging known faces in a video in opencv

Hi, For online face recognition, I used the following link. http://www.shervinemami.info/faceRecognition.html

But the problem I am facing is, 1. How do I start online training for more than one person? 2. I tried training one person after another by giving different names. But when I start testing, if the two persons come at a time in video, it is displaying the same name for both persons in the video.

Can anyone help me? I am not able to move ahead after this.

My ultimate goal is to recognize people in a video and tag them with their names.

2014-10-26 21:42:31 -0500 asked a question How to tag persons in an image in OpenCV?

I am working on the problem of face recognition. I need a help to display, the name of that person in the image by tagging(Display the name of the person by performing face recognition). Can anyone help me with this?