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
c0cf1df9
Commit
c0cf1df9
authored
May 16, 2023
by
Matteo Spanio
Browse files
update documentation and config file
parent
6c938233
Changes
5
Hide whitespace changes
Inline
Side-by-side
config/config.json
View file @
c0cf1df9
{
"WorkingPath"
:
"/
home/matteo/Scrivania/Projects/workflow/
data"
,
"WorkingPath"
:
"/data"
,
"FilesName"
:
"BERIO100.mov"
,
"Brands"
:
true
,
"Speed"
:
7.5
,
...
...
docs/sections/Documentation.md
0 → 100644
View file @
c0cf1df9
# Documentation
>
\ No newline at end of file
docs/sections/Getting_started.md
View file @
c0cf1df9
...
...
@@ -60,12 +60,12 @@ or just run `make build` from the root folder.
A Dockerfile is provided to build a Docker image with the
*Video Analyser*
.
To build the image, run the following command from the root folder:
```
docker build -t mpai-video-analy
s
er .
docker build -t mpai-video-analy
z
er .
```
To run the container, run the following command:
```
docker run -it --rm -v /path/to/video/analyser:/app mpai-video-analy
s
er /bin/bash
docker run -it --rm -v /path/to/video/analyser:/app mpai-video-analy
z
er
-v /path/to/your/data:/data
/bin/bash
```
where
`/path/to/video/analyser`
is the path to the
*Video Analyser*
folder.
...
...
docs/sections/Parameters.md
0 → 100644
View file @
c0cf1df9
src/utility.h
View file @
c0cf1df9
...
...
@@ -125,10 +125,13 @@ namespace utility {
*
*/
struct
Threshold
{
float
percentual
;
int
angle
;
int
scale
;
int
pos
;
/**
*
*/
float
percentual
;
/**< The minimum percentage of different pixels for considering the current frame under the ROI as a potential Irregularity */
int
angle
;
/**< The angle votes threshold for the detection of the object */
int
scale
;
/**< The scale votes threshold for the detection of the object */
int
pos
;
/**< The position votes threshold for the detection of the object */
};
/**
...
...
@@ -143,14 +146,23 @@ enum Object {
/**
* @struct SceneObject
* @brief
Struct containing the information about a scene object
.
*
* @brief
A scene object is an object that can be detected in a scene, such as a tape or a capstan
.
*
*/
struct
SceneObject
{
int
minDist
;
Threshold
threshold
;
int
minDist
;
/**< The minimum distance between the centers of the detected objects for the detection of the reading head */
Threshold
threshold
;
/**< the threshold values used to detect the object */
SceneObject
(
int
minDist
,
Threshold
threshold
);
~
SceneObject
()
=
default
;
/**
* @fn static SceneObject from_file(fs::path path, Object obj)
* @brief Create a SceneObject from a given file.
*
* @param path The path of the file containing the object.
* @note The file must be a JSON file.
* @param obj The object to detect.
* @return SceneObject The SceneObject created from the file.
*/
static
SceneObject
from_file
(
fs
::
path
path
,
Object
obj
);
};
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