Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
MPAI-Private
MPAI-CAE
arp
Video Analyzer
Commits
e6c71421
Commit
e6c71421
authored
Aug 24, 2022
by
Nadir Dalla Pozza
Browse files
GOOD: as the previous, but removed unnecessary 'include'.
parent
0e0fb113
Changes
7
Hide whitespace changes
Inline
Side-by-side
bin/frame_extraction
View file @
e6c71421
No preview for this file type
build/CMakeFiles/frame_extraction.dir/compiler_depend.internal
View file @
e6c71421
...
@@ -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
build/CMakeFiles/frame_extraction.dir/compiler_depend.make
View file @
e6c71421
...
@@ -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
:
...
...
build/CMakeFiles/frame_extraction.dir/src/script.cpp.o
View file @
e6c71421
No preview for this file type
build/CMakeFiles/frame_extraction.dir/src/script.cpp.o.d
View file @
e6c71421
...
@@ -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
src/script.cpp
View file @
e6c71421
...
@@ -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
)
{
...
...
src/utility.h
View file @
e6c71421
#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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment