Commit e075f46c authored by Matteo's avatar Matteo
Browse files

update

parent 96b917bc
# Documentation
>
\ No newline at end of file
> There is no worse software than undocumented software.
## Style guide
The code is written following C++20 standard, to ensure the best readability and maintainability. The code is formatted using [clang-format](https://clang.llvm.org/docs/ClangFormat.html) with the [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html) as a reference.
# Todo
This section refers to the code delivered by February 2023.
- To be able to work with the "old" neural network (by Ilenya), the output images should correspond to the old "whole tape" where, from the frame judged as interesting, an area corresponding to the height of the tape was extracted (so about the height of the current rectangle) and as wide as the original frame (so 720px). This area will then have to be resized to 224x224 as in the past. If instead you decide to use the new neural network, no changes are needed;
- A resize function of the entire video should be implemented if it does not conform to the PAL standard (currently taken for granted);
- Progressive videos, which do not require deinterlacing, should be managed (in the code there are several steps that operate considering this property);
\ No newline at end of file
......@@ -8,8 +8,11 @@
* - Irregularity Files;
* - Irregularity Images.
*
* WARNING:
* Currently, this program is only compatible with the Studer A810 and videos recorded in PAL standard.
* @warning Currently, this program is only compatible with the Studer A810 and videos recorded in PAL standard.
*
* @todo
* - A resize function of the entire video should be implemented if it does not conform to the PAL standard (currently taken for granted).
* - Progressive videos, which do not require deinterlacing, should be managed (in the code there are several steps that operate considering this property).
*
* @author Nadir Dalla Pozza <nadir.dallapozza@unipd.it>
* @author Matteo Spanio <dev2@audioinnova.com>
......@@ -565,11 +568,20 @@ bool frameDifference(cv::Mat prevFrame, cv::Mat currentFrame, int msToEnd, Scene
/**
* @fn void processing(cv::VideoCapture videoCapture)
* @fn void processing(cv::VideoCapture videoCapture, SceneObject capstan, SceneObject tape, Args args)
* @brief video processing phase, where each frame is analysed.
* It saves the IrregularityImages and updates the IrregularityFiles if an Irregularity is found
*
* @note To be able to work with the "old" neural network (by Ilenya),
* the output images should correspond to the old "whole tape" where, from the frame judged as interesting,
* an area corresponding to the height of the tape was extracted (so about the height of the current rectangle)
* and as wide as the original frame (so 720px). This area will then have to be resized to 224x224
* as in the past. If instead you decide to use the new neural network, no changes are needed.
*
* @param videoCapture the input Preservation Audio-Visual File;
* @param capstan the capstan SceneObject;
* @param tape the tape SceneObject;
* @param args the command line arguments.
*/
void processing(cv::VideoCapture videoCapture, SceneObject capstan, SceneObject tape, Args args) {
......
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