
This example uses OpenCV VideoReader to read the video file
"dfxDemoCP1.mov" and simulates a face extraction using a
provided "dfxDemoCP1-faces.json" file containing the necessary
face points. A DFXFactory is created, the study is added to
it and the Collector is created as video frames become available
they are added to the Collector along with the face point data.
When the Collector has extracted enough data a payload can be
generated which would be sent to the DFX Cloud Server using the
API. Running the example will save a bunch of "chunk" files.

With Just, nushell and conan you can test with:

```bash
just clean show export config build test

# or more simply if you have already run export and config
just build test
```

The CMakeLists.txt does not contain any references to
conan but it does expect to find_package(OpenCV) so it
is possible to hint at the config location and build
without conan. But if usually it's easier to let conan
provide the OpenCV for you using the
CMAKE_PROJECT_TOP_LEVEL_INCLUDE (CMake v3.24 and Conan 2.0.5)
which uses the embedded conan_provider.cmake from
https://github.com/conan-io/cmake-conan/tree/develop2
to overload the find_package resolution.

On Windows, you can try:

     mkdir build && cd build
     cmake -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=../conan/conan_provider.cmake -DCMAKE_GENERATOR_PLATFORM=x64 ..
     cmake --build . --config Release

     Release\example.exe

You may have to ensure that dfx.dll, dfxcpp.dll and opencv*.dll(s) are in
the dll search paths.

On Macos/Linux,

     mkdir build
     cmake -B build -S . -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=../conan/conan_provider.cmake -DCMAKE_BUILD_TYPE=Release
     cmake --build build --config Release
     ./example
