AliceVision
AliceVision copied to clipboard
[keyframeselection] Algorithms are rewritten
Keyframe selection was not working previously.
This PR tries a new set of algorithms to replace the previous one
- A simple one which simply perform a regular sampling on the temporal dimension
- A more complex one which take the frame with the sharper value in a window, and check that this frame has sufficient motion with the previous selection frame.
#include <opencv2/optflow.h>
is not found in the linux CI.
Should we add a module here? https://github.com/alicevision/AliceVision/blob/develop/CMakeLists.txt#L687
Do we really need highgui here?
keyframe/KeyframeSelector.cpp:20:31: fatal error: opencv2/highgui.hpp: No such file or directory
- simple mode tested and works
Tested simple and advanced mode on windows, seems to work as intended. Note: cmake option ALICEVISION_USE_OPENCV is off by default, to be working off the shelf, cmake needs to be called with -DALICEVISION_USE_OPENCV=ON