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
2d316e30
Commit
2d316e30
authored
Apr 03, 2023
by
Matteo
Browse files
update Docker script and config
parent
05a31479
Changes
4
Hide whitespace changes
Inline
Side-by-side
.dockerignore
0 → 100644
View file @
2d316e30
PerformanceResults.xlsx
README.md
.DS_Store
\ No newline at end of file
Dockerfile
View file @
2d316e30
...
...
@@ -6,7 +6,7 @@ WORKDIR /app
COPY
. ./
RUN
apt update
&&
apt
install
libboost-program-options-dev git build-essential cmake g++ wget unzip python3
-y
RUN
apt update
&&
apt
install
libboost-program-options-dev git build-essential cmake g++ wget unzip python3
python3-pip
-y
RUN
mkdir
opencv_source
&&
cd
./opencv_source
&&
wget
-O
opencv.zip https://github.com/opencv/opencv/archive/4.5.4.zip
&&
wget
-O
opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.5.4.zip
&&
unzip opencv.zip
&&
unzip opencv_contrib.zip
&&
mkdir
-p
build
&&
cd
./build
&&
cmake
-DOPENCV_EXTRA_MODULES_PATH
=
../opencv_contrib-4.5.4/modules ../opencv-4.5.4
&&
make
-j4
&&
make
install
&&
cd
/app
...
...
@@ -18,6 +18,8 @@ RUN rm -r opencv_source json
RUN
cd
./build
&&
cmake ..
&&
make
&&
cd
/app
RUN
cd
./server
&&
pip
install
--no-cache-dir
-r
requirements.txt
&&
cd
/app
VOLUME
[ "/data" ]
CMD
[ "python3", "VideoAnalyser.py", "-h" ]
\ No newline at end of file
CMD
["uvicorn", "server.main:app", "--host", "0.0.0.0", "--log-config", "server/config.yaml", "--port", "80"]
\ No newline at end of file
README.md
View file @
2d316e30
# Video Analyser
[

](https://mpai.community/standards/mpai-cae/about-mpai-cae/)
## Description
Implements the Technical Specification of
[
MPAI CAE-ARP
](
https://mpai.community/standards/mpai-cae/about-mpai-cae/#Figure2
)
*Video Analyser*
AIM, providing:
*
2 Irregularity Files;
...
...
config/config.json
View file @
2d316e30
{
"WorkingPath"
:
"/data"
,
"FilesName"
:
"test.mov"
,
"Brands"
:
true
,
"Speed"
:
7.5
,
"TapeThresholdPercentual"
:
80
,
"CapstanThresholdPercentual"
:
50
,
"MinDist"
:
10
,
"AngleThresh"
:
10000
,
"ScaleThresh"
:
200
,
"PosThresh"
:
40
,
"MinDistCapstan"
:
1
,
"AngleThreshCapstan"
:
1000
,
"ScaleThreshCapstan"
:
30
,
"PosThreshCapstan"
:
10
}
{
"WorkingPath"
:
"/data"
,
"FilesName"
:
"sad"
,
"Brands"
:
true
,
"Speed"
:
7.5
,
"TapeThresholdPercentual"
:
80
,
"CapstanThresholdPercentual"
:
50
,
"MinDist"
:
10
,
"AngleThresh"
:
10000
,
"ScaleThresh"
:
200
,
"PosThresh"
:
40
,
"MinDistCapstan"
:
1
,
"AngleThreshCapstan"
:
1000
,
"ScaleThreshCapstan"
:
30
,
"PosThreshCapstan"
:
10
}
\ No newline at end of file
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