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 ...@@ -1180,6 +1180,6 @@ CMakeFiles/frame_extraction.dir/src/script.cpp.o
/usr/local/include/nlohmann/detail/macro_unscope.hpp /usr/local/include/nlohmann/detail/macro_unscope.hpp
/usr/local/include/nlohmann/thirdparty/hedley/hedley_undef.hpp /usr/local/include/nlohmann/thirdparty/hedley/hedley_undef.hpp
/Users/nadir/Documents/MPAI-CAE/AIMs/VideoAnalyser/src/utility.h /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
...@@ -1179,8 +1179,8 @@ CMakeFiles/frame_extraction.dir/src/script.cpp.o: ../src/script.cpp \ ...@@ -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/detail/macro_unscope.hpp \
/usr/local/include/nlohmann/thirdparty/hedley/hedley_undef.hpp \ /usr/local/include/nlohmann/thirdparty/hedley/hedley_undef.hpp \
../src/utility.h \ ../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: /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: \ ...@@ -1176,5 +1176,5 @@ CMakeFiles/frame_extraction.dir/src/script.cpp.o: \
/usr/local/include/nlohmann/detail/macro_unscope.hpp \ /usr/local/include/nlohmann/detail/macro_unscope.hpp \
/usr/local/include/nlohmann/thirdparty/hedley/hedley_undef.hpp \ /usr/local/include/nlohmann/thirdparty/hedley/hedley_undef.hpp \
/Users/nadir/Documents/MPAI-CAE/AIMs/VideoAnalyser/src/utility.h \ /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; ...@@ -64,8 +64,6 @@ json irregularityFileOutput2;
// RotatedRect identifying the processing area // RotatedRect identifying the processing area
RotatedRect rect, rectTape, rectCapstan; RotatedRect rect, rectTape, rectCapstan;
bool debug = true;
bool frameDifference(cv::Mat prevFrame, cv::Mat currentFrame, int msToEnd) { bool frameDifference(cv::Mat prevFrame, cv::Mat currentFrame, int msToEnd) {
......
#include <vector>
#include <string.h>
#include <fstream>
namespace fs = std::__fs::filesystem; namespace fs = std::__fs::filesystem;
using namespace cv; using namespace cv;
using namespace std; using namespace std;
...@@ -67,7 +63,7 @@ void saveIrregularityImage(std::string safeTimeLabel, std::string fileName, cv:: ...@@ -67,7 +63,7 @@ void saveIrregularityImage(std::string safeTimeLabel, std::string fileName, cv::
} else { } else {
cv::imwrite(pathEndTape + "/" + fileName + "_" + safeTimeLabel + ".jpg", subFrame); cv::imwrite(pathEndTape + "/" + fileName + "_" + safeTimeLabel + ".jpg", subFrame);
} }
cv::Mat resized224Nas; cv::Mat resized224Nas;
cv::resize(subFrame, resized224Nas, cv::Size(224, 224)); cv::resize(subFrame, resized224Nas, cv::Size(224, 224));
cv::imwrite(pathTape224 + "/"+ fileName + "_" + safeTimeLabel + ".jpg", resized224Nas); 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