Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unhandled exception at 0x00007FFB98124890 (msvcr120.dll) in test.exe:

Hello all i'm getting error of Unhandled exception at 0x00007FFB98124890 (msvcr120.dll) in test.exe: Fatal program exit requested. and at image description How to resolve this problem. Thanks

Unhandled exception at 0x00007FFB98124890 (msvcr120.dll) in test.exe:

Hello all i'm getting error of Unhandled exception at 0x00007FFB98124890 (msvcr120.dll) in test.exe: Fatal program exit requested. and at image description How to resolve this problem. Thanksmy code is int main(int argc, char* argv[]) {

VideoCapture cap("F:/activity datasets/dataset action/SubtractionResultsStatic/RIDING/RIDINGSub.avi");

if (!cap.isOpened()) {
    cerr << "Capture cannot be opened" << endl;
    return -1;
}

Mat input;
    //To store the keypoints that will be extracted by SIFT
vector<KeyPoint> keypoints;
//To store the SIFT descriptor of current image
Mat descriptor;
//To store all the descriptors that are extracted from all the images.
Mat featuresUnclustered;
//The SIFT feature extractor and descriptor
//SiftDescriptorExtractor detector;
int minHessian = 400;
Ptr<SIFT> detector = SIFT::create();

while (1) {

    cap.read(input);
    if (input.empty()) break;

    cvtColor(input, input, CV_BGR2GRAY);


    detector->detect(input, keypoints);
    //compute the descriptors for each keypoint
    detector->compute(input, keypoints, descriptor);
    //put the all feature descriptors in a single Mat object 
    featuresUnclustered.push_back(descriptor);
    //print the percentage
    printf("%i percent done\n", f/ 10);



    f++;
}


//Construct BOWKMeansTrainer
//the number of bags
int dictionarySize = 200;
//define Term Criteria
TermCriteria tc(CV_TERMCRIT_ITER, 100, 0.001);
//retries number
int retries = 1;
//necessary flags
int flags = KMEANS_PP_CENTERS;
//Create the BoW (or BoF) trainer
BOWKMeansTrainer bowTrainer(dictionarySize, tc, retries, flags);
//cluster the feature vectors
Mat DictionaryRidingSIFT = bowTrainer.cluster(featuresUnclustered);
//store the vocabulary
FileStorage fs("DictionaryRidingSIFT.yml", FileStorage::WRITE);
fs << "vocabulary" << DictionaryRidingSIFT;
fs.release();


printf("\ndone\n");
return 0;

}

Unhandled exception at 0x00007FFB98124890 (msvcr120.dll) in test.exe:

Hello all i'm getting error of Unhandled exception at 0x00007FFB98124890 (msvcr120.dll) in test.exe: Fatal program exit requested. and at image description How to resolve this problem. my code is int main(int argc, char* argv[]) {

VideoCapture cap("F:/activity datasets/dataset action/SubtractionResultsStatic/RIDING/RIDINGSub.avi");

if (!cap.isOpened()) {
    cerr << "Capture cannot be opened" << endl;
    return -1;
}

Mat input;
    //To store the keypoints that will be extracted by SIFT
vector<KeyPoint> keypoints;
//To store the SIFT descriptor of current image
Mat descriptor;
//To store all the descriptors that are extracted from all the images.
Mat featuresUnclustered;
//The SIFT feature extractor and descriptor
//SiftDescriptorExtractor detector;
int minHessian = 400;
Ptr<SIFT> detector = SIFT::create();

while (1) {

    cap.read(input);
    if (input.empty()) break;

    cvtColor(input, input, CV_BGR2GRAY);


    detector->detect(input, keypoints);
    //compute the descriptors for each keypoint
    detector->compute(input, keypoints, descriptor);
    //put the all feature descriptors in a single Mat object 
    featuresUnclustered.push_back(descriptor);
    //print the percentage
    printf("%i percent done\n", f/ 10);



    f++;
}


//Construct BOWKMeansTrainer
//the number of bags
int dictionarySize = 200;
//define Term Criteria
TermCriteria tc(CV_TERMCRIT_ITER, 100, 0.001);
//retries number
int retries = 1;
//necessary flags
int flags = KMEANS_PP_CENTERS;
//Create the BoW (or BoF) trainer
BOWKMeansTrainer bowTrainer(dictionarySize, tc, retries, flags);
//cluster the feature vectors
Mat DictionaryRidingSIFT = bowTrainer.cluster(featuresUnclustered);
//store the vocabulary
FileStorage fs("DictionaryRidingSIFT.yml", FileStorage::WRITE);
fs << "vocabulary" << DictionaryRidingSIFT;
fs.release();


printf("\ndone\n");
return 0;

}Thanks

Unhandled exception at 0x00007FFB98124890 (msvcr120.dll) in test.exe:

Hello all i'm getting error of Unhandled exception at 0x00007FFB98124890 (msvcr120.dll) in test.exe: Fatal program exit requested. and at image descriptionimage description How to resolve this problem. Thanks