add samples

pull/3471/head
kallaballa 2 years ago
parent 9cedae25b7
commit 66287912e3
  1. BIN
      assets/face_detection_yunet_2022mar.onnx
  2. 805185
      assets/lbfmodel.yaml
  3. 13
      modules/v4d/CMakeLists.txt
  4. 0
      modules/v4d/samples/Makefile
  5. 0
      modules/v4d/samples/beauty/Makefile
  6. 0
      modules/v4d/samples/beauty/assets
  7. 0
      modules/v4d/samples/beauty/beauty-demo.cpp
  8. 0
      modules/v4d/samples/beauty/beauty.html
  9. 0
      modules/v4d/samples/beauty/get.php
  10. 0
      modules/v4d/samples/beauty/index.php
  11. 1
      modules/v4d/samples/cpp/assets
  12. 0
      modules/v4d/samples/custom_source_and_sink.cpp
  13. 9
      modules/v4d/samples/display_image.cpp
  14. 4
      modules/v4d/samples/display_image_fb.cpp
  15. 0
      modules/v4d/samples/font/Makefile
  16. 0
      modules/v4d/samples/font/font-demo.cpp
  17. 0
      modules/v4d/samples/font/font.html
  18. 0
      modules/v4d/samples/font/get.php
  19. 0
      modules/v4d/samples/font/index.php
  20. 2
      modules/v4d/samples/font_rendering.cpp
  21. 0
      modules/v4d/samples/font_with_gui.cpp
  22. 0
      modules/v4d/samples/nanovg/Makefile
  23. 0
      modules/v4d/samples/nanovg/nanovg-demo.cpp
  24. 0
      modules/v4d/samples/optflow/Makefile
  25. 0
      modules/v4d/samples/optflow/get.php
  26. 0
      modules/v4d/samples/optflow/index.php
  27. 0
      modules/v4d/samples/optflow/local.html
  28. 0
      modules/v4d/samples/optflow/optflow-demo.cpp
  29. 0
      modules/v4d/samples/optflow/optflow.html
  30. 0
      modules/v4d/samples/pedestrian/Makefile
  31. 0
      modules/v4d/samples/pedestrian/pedestrian-demo.cpp
  32. 0
      modules/v4d/samples/render_opengl.cpp
  33. 0
      modules/v4d/samples/shader/Makefile
  34. 0
      modules/v4d/samples/shader/get.php
  35. 0
      modules/v4d/samples/shader/index.php
  36. 0
      modules/v4d/samples/shader/shader-demo.cpp
  37. 0
      modules/v4d/samples/shader/shader.html
  38. 0
      modules/v4d/samples/tetra/Makefile
  39. 0
      modules/v4d/samples/tetra/tetra-demo.cpp
  40. 4
      modules/v4d/samples/vector_graphics.cpp
  41. 4
      modules/v4d/samples/vector_graphics_and_fb.cpp
  42. 0
      modules/v4d/samples/video/Makefile
  43. 0
      modules/v4d/samples/video/video-demo.cpp
  44. 0
      modules/v4d/samples/video_editing.cpp

File diff suppressed because it is too large Load Diff

@ -39,16 +39,25 @@ ocv_add_module(v4d opencv_core opencv_imgproc opencv_videoio opencv_video)
ocv_glob_module_sources()
ocv_module_include_directories()
ocv_create_module()
ocv_add_samples(opencv_face opencv_tracking opencv_objdetect opencv_stitching opencv_optflow opencv_imgcodecs opencv_features2d opencv_dnn)
target_compile_features(example_v4d_display_image PRIVATE cxx_std_20)
target_compile_features(example_v4d_custom_source_and_sink PRIVATE cxx_std_20)
target_compile_features(example_v4d_display_image PRIVATE cxx_std_20)
target_compile_features(example_v4d_display_image_fb PRIVATE cxx_std_20)
target_compile_features(example_v4d_font_rendering PRIVATE cxx_std_20)
target_compile_features(example_v4d_font_with_gui PRIVATE cxx_std_20)
target_compile_features(example_v4d_render_opengl PRIVATE cxx_std_20)
target_compile_features(example_v4d_vector_graphics_and_fb PRIVATE cxx_std_20)
target_compile_features(example_v4d_vector_graphics PRIVATE cxx_std_20)
target_compile_features(example_v4d_video_editing PRIVATE cxx_std_20)
set(NANOGUI_BUILD_SHARED ON)
set(NANOGUI_BUILD_PYTHON OFF)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/third/nanogui)
add_library(nanovg "third/nanogui/ext/nanovg/src/nanovg.c")
target_compile_features(opencv_v4d PRIVATE cxx_std_20)
#ocv_add_samples(opencv_aruco)
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wunused-parameter -Wdeprecated-enum-enum-conversion)
ocv_target_link_libraries(${the_module} ${GLEW_LIBRARIES} OpenCL -lnanovg -lnanogui -lGL)

@ -1 +0,0 @@
../../../../assets/

@ -1,4 +1,5 @@
#include <opencv2/v4d/v4d.hpp>
#include <opencv2/imgcodecs.hpp>
using namespace cv;
using namespace cv::viz;
@ -15,9 +16,9 @@ int main() {
v4d->feed(image);
//Display the framebuffer in the native window in an endless loop.
//V4D::run() though it takes a functor is not a context. It is simply an abstraction
//of a run loop for portability reasons and executes the functor until the application
//terminates or the functor returns false.
v4d->run(v4d->display);
//V4D::run() though it takes a functor is not a context. It is simply an abstraction
//of a run loop for portability reasons and executes the functor until the application
//terminates or the functor returns false.
v4d->run([=](){ return v4d->display(); });
}

@ -1,5 +1,5 @@
#include <opencv2/v4d/v4d.hpp>
#include <opencv2/imgcodecs.hpp>
using namespace cv;
using namespace cv::viz;
@ -19,6 +19,6 @@ int main() {
cvtColor(resized, framebuffer, COLOR_RGB2BGRA);
});
//Display the framebuffer in the native window in an endless loop
v4d->run(v4d->display);
v4d->run([=](){ return v4d->display(); });
}

@ -25,6 +25,6 @@ int main(int argc, char** argv) {
});
//Display the framebuffer in the native window in an endless loop
v4d->run(v4d->display);
v4d->run([=](){ return v4d->display(); });
}

@ -25,7 +25,7 @@ int main(int argc, char** argv) {
stroke();
});
//Display the framebuffer in the native window in an endless loop
v4d->run(v4d->display);
//Display the framebuffer in the native window in an endless loop
v4d->run([=](){ return v4d->display(); });
}

@ -29,7 +29,7 @@ int main(int argc, char** argv) {
//Heavily blurs the crosshair using a cheap boxFilter
boxFilter(framebuffer, framebuffer, -1, Size(15, 15), Point(-1,-1), true, BORDER_REPLICATE);
});
//Display the framebuffer in the native window in an endless loop
v4d->run(v4d->display);
//Display the framebuffer in the native window in an endless loop
v4d->run([=](){ return v4d->display(); });
}
Loading…
Cancel
Save