Commit e6c71421 authored by Nadir Dalla Pozza's avatar Nadir Dalla Pozza
Browse files

GOOD: as the previous, but removed unnecessary 'include'.

parent 0e0fb113
No preview for this file type
......@@ -1180,6 +1180,6 @@ CMakeFiles/frame_extraction.dir/src/script.cpp.o
/usr/local/include/nlohmann/detail/macro_unscope.hpp
/usr/local/include/nlohmann/thirdparty/hedley/hedley_undef.hpp
/Users/nadir/Documents/MPAI-CAE/AIMs/VideoAnalyser/src/utility.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/fstream
/Users/nadir/Documents/MPAI-CAE/AIMs/VideoAnalyser/src/forAudioAnalyser.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/fstream
......@@ -1179,8 +1179,8 @@ CMakeFiles/frame_extraction.dir/src/script.cpp.o: ../src/script.cpp \
/usr/local/include/nlohmann/detail/macro_unscope.hpp \
/usr/local/include/nlohmann/thirdparty/hedley/hedley_undef.hpp \
../src/utility.h \
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/fstream \
../src/forAudioAnalyser.h
../src/forAudioAnalyser.h \
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/fstream
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/fstream:
......
......@@ -1176,5 +1176,5 @@ CMakeFiles/frame_extraction.dir/src/script.cpp.o: \
/usr/local/include/nlohmann/detail/macro_unscope.hpp \
/usr/local/include/nlohmann/thirdparty/hedley/hedley_undef.hpp \
/Users/nadir/Documents/MPAI-CAE/AIMs/VideoAnalyser/src/utility.h \
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/fstream \
/Users/nadir/Documents/MPAI-CAE/AIMs/VideoAnalyser/src/forAudioAnalyser.h
/Users/nadir/Documents/MPAI-CAE/AIMs/VideoAnalyser/src/forAudioAnalyser.h \
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/fstream
......@@ -64,8 +64,6 @@ json irregularityFileOutput2;
// RotatedRect identifying the processing area
RotatedRect rect, rectTape, rectCapstan;
bool debug = true;
bool frameDifference(cv::Mat prevFrame, cv::Mat currentFrame, int msToEnd) {
......
#include <vector>
#include <string.h>
#include <fstream>
namespace fs = std::__fs::filesystem;
using namespace cv;
using namespace std;
......@@ -67,7 +63,7 @@ void saveIrregularityImage(std::string safeTimeLabel, std::string fileName, cv::
} else {
cv::imwrite(pathEndTape + "/" + fileName + "_" + safeTimeLabel + ".jpg", subFrame);
}
cv::Mat resized224Nas;
cv::resize(subFrame, resized224Nas, cv::Size(224, 224));
cv::imwrite(pathTape224 + "/"+ fileName + "_" + safeTimeLabel + ".jpg", resized224Nas);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment