This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Download and Install the Latest Updates for the OS | |
| apt-get update && apt-get upgrade -y | |
| # Set the Server Timezone to CST | |
| echo "America/Chicago" > /etc/timezone | |
| dpkg-reconfigure -f noninteractive tzdata | |
| # Enable Ubuntu Firewall and allow SSH & MySQL Ports | |
| ufw enable | |
| ufw allow 22 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| This functions opens a video file and extracts the frames and put them into a vector of Mat(its the class for representing an img) | |
| */ | |
| void extract_frames(const string &videoFilePath,vector<Mat>& frames){ | |
| try{ | |
| //open the video file | |
| VideoCapture cap(videoFilePath); // open the video file | |
| if(!cap.isOpened()) // check if we succeeded | |
| CV_Error(CV_StsError, "Can not open Video file"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // RapidXml : http://rapidxml.sourceforge.net/ | |
| #include <cstddef> | |
| #include <cassert> | |
| #define RAPIDXML_NO_STDLIB | |
| #define RAPIDXML_NO_EXCEPTIONS | |
| #include "rapidxml-1.13/rapidxml.hpp" | |
| #include <stdio.h> | |
| #include <string> | |
| #include <vector> |