-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
34 lines (33 loc) · 1.38 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <iostream>
#include <opencv2/opencv.hpp>
#include <string>
#include "extraction.hpp"
#include "loadFile.hpp"
#include "pathFiles.hpp"
#include <vector>
#include "lookSimilar.hpp"
#include "detection.hpp"
int main(int argc, char **argv) {
std::string direct = "/Users/sebastiandonoso/Documents/Universidad/2018/Recuperacion de la informacion/T1/comerciales/frames-c";
std::vector<std::string> commercialsNames;
std::vector<std::vector<cv::Mat>> commercials;
commercials = loadCommercials(direct, commercialsNames);
std::vector<cv::Mat> video = loadFile("video-prueba.yml");
std::vector<std::tuple<int, std::string, int>> result = runNearest(commercialsNames, commercials, video);
commercialsDetection(result);
/*if (argc != 2) {
std::cout << "debe escribir un directorio" << std::endl;
return EXIT_FAILURE;
}
std::string dirname(argv[1]);
std::vector<std::string> list = listar_archivos(dirname);
for (const std::string &fullpath : list) {
std::cout << fullpath << std::endl;
//extraction(fullpath);
}
//std::vector<cv::Mat> frames = loadFile("/Users/sebastiandonoso/CLionProjects/t1_comerciales/ballerina.yml");
return EXIT_SUCCESS;*/
/*videoExtraction(
"/Users/sebastiandonoso/Documents/Universidad/2018/Recuperacion de la informacion/T1/television/mega-2014_04_10.mp4");*/
return 0;
}