Commit 2d316e30 authored by Matteo's avatar Matteo
Browse files

update Docker script and config

parent 05a31479
PerformanceResults.xlsx
README.md
.DS_Store
\ No newline at end of file
...@@ -6,7 +6,7 @@ WORKDIR /app ...@@ -6,7 +6,7 @@ WORKDIR /app
COPY . ./ 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 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 ...@@ -18,6 +18,8 @@ RUN rm -r opencv_source json
RUN cd ./build && cmake .. && make && cd /app RUN cd ./build && cmake .. && make && cd /app
RUN cd ./server && pip install --no-cache-dir -r requirements.txt && cd /app
VOLUME [ "/data" ] VOLUME [ "/data" ]
CMD [ "python3", "VideoAnalyser.py", "-h" ] CMD ["uvicorn", "server.main:app", "--host", "0.0.0.0", "--log-config", "server/config.yaml", "--port", "80"]
\ No newline at end of file \ No newline at end of file
# Video Analyser # Video Analyser
[![MPAI CAE-ARP](https://img.shields.io/badge/MPAI%20CAE--ARP-gray?style=for-the-badge&logo=AppleMusic&logoColor=cyan&link=https://mpai.community/standards/mpai-cae/about-mpai-cae/)](https://mpai.community/standards/mpai-cae/about-mpai-cae/)
## Description ## Description
Implements the Technical Specification of [MPAI CAE-ARP](https://mpai.community/standards/mpai-cae/about-mpai-cae/#Figure2) *Video Analyser* AIM, providing: 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; * 2 Irregularity Files;
......
{ {"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}
"WorkingPath": "/data", \ No newline at end of file
"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
}
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